In my node.js express app, I set a cookie on a request like this
res.cookie('token', access.token, {
//secure: process.env.NODE_ENV !== "development",
maxAge: 24 * 60 * 60 * 1000,
httpOnly: true // prevent cross-site scripting attacks (XSS) attacks
});
Then in dev tools in the network tab, if I click the request, I can see the cookies tab and see the value there.
However if I go to the application tab and click on cookies, I don't see my cookie there. As well if I keep making any more requests, the cookie-parser
module is not seeing the cookie as well.
How can I ensure the cookie above gets sent back to the server for all requests?
Thanks