Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的情况是,客户端通过存储在 cookie 中的 JSESSIONID 进行身份验证,并在任何请求的标头中发送。
是否可以从请求对象中读取该 cookie?
我尝试过使用request.requestHeaders,但那里没有 cookie。
request.requestHeaders
我知道我可能会以document.cookie某种方式读取 cookie,但我实际上并没有以这种方式测试请求。
document.cookie