[英]how to set and get the cookie in nodejs http use jwt without express?
当我以这种方式设置 cookie 时: res.writeHead(200, { 'Set-Cookie': access-token=${token}
, }) 如何在另一个请求中获取 cookie?
如果设置了 cookie,那么您应该能够在请求 header 中获取 cookie。
console.log(request.cookies);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.