I have an express code that sends the cookie to get requests in some route:
res.cookie("userID", `${userSaved._id}`, { maxAge: 900000, httpOnly: true });
So when I make a get request in this route the response header has Set-Cookie : USERID : 234232,
I have another route where I want to use this cookie, but on the request header I don't see any cookie persisted. I'm using React as a front-end and node as a backend.
I have tried modifying my cors middleware, In react in fetch() I have put credentials : include,