-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can i get set-cookie header ? #295
Comments
u found the solution? |
There is in fact a |
Can't find it too. Does anyone have any hint on this? |
Any update ? |
there is a "set-cookies" in response headers. |
Same problem unable to get set cookies from the header also try with withcredential : true. Any help on this |
I'm also facing this. The cookie is there on the network tab, but nothing inside the response from axios. |
ankitsinghaniyaz Use withCredentials: true, in axiios they will help. |
So I had some gaps in my knowledge regarding how cookies work. Putting it here so that others can benefit from this.
I hope this will help someone. :) |
This saved me a lot of time. Thank you ! |
Did you find solution to get the value of set-cookie please ? adding withCredentials: true doesn't fix the issue |
@ankitsinghaniyaz That answer is only true if considering the usage of axios inside a browser. |
Did anyone here find a solution ? None of the above solutions are solving it when axios is running on the server. |
Hello.
"Set-Cookie" header exist in HTTP response header. But axios response didn't have "set-cookie" header.
Response header have only "content-type".
How can i get "set-cookie" header ?
The text was updated successfully, but these errors were encountered: