Skip to content
Advertisement

Chrome not saving cookies in localhost

I know this has been asked before but none of the solutions named work. I am using Spring boot and React for my webapp, and need to set cookies on the website. I am developing and testing using Google Chrome. When I get the response from the server, the cookie is present and visible. However it is not saved in Applications>Cookies.

What is the modern day solution of this? The recent past people asking have not gotten responses.

Advertisement

Answer

Check if your cookies are set to save only when domain is secure. And when the cookie is saved, remember to use withCredentials option when sending requests. It would be also helpful if you posted your example response from the server, especially the headers.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement