Cookies are not setting on the browser using fetch/axios API but when I use Postman they work. #599
Unanswered
CrispenGari
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've a simple
/auth/login
route that set a jwt token to a cookie when you successfull authenticated:Here is how i'm configuring
cors
in on the server:Everything works when i test the API using postman. When i want to use
axios
/fetch
api from my web app in the network tab on the response headers i can see that cookies are being set but they are not stored in the browser:here is my
axios
instance:This is how i'm sending the request to the server:
Why cookies not stored in the browser?
Beta Was this translation helpful? Give feedback.
All reactions