I’m currently using localhost:5000
for my backend and localhost:3000
for my frontend. When I log in I post login credentials to my backend and receive the auth-token
as a cookie. I can see the cookie in “Cookies”. The problem is that when I try to access a private route, the cookie is not sent with the request, and therefore I cannot get authenticated.
How can I send the cookie with the request?