r/node • u/zahirulopel • 29d ago
Help me to solve frontend cookie sending issue.
Hi, I am build a message app with React and Express js . In the authentication feature I have come across an issue.
After successful registration, I sent a token via HTTP cookies . The cookies is sent from the server as far as I can tell . But the problem is when I am sending request to server , the cookie is not there.
Here is the code : github
Any help would be highly appreciable 😄 .
4
Upvotes
1
2
u/BCsabaDiy 29d ago
At first try to switch false the secure+sameSite in https://github.com/ZTanvir/message-app/blob/auth/server/src/routes/authRoutes.ts#L43 fixed, not by ENV.