Skip to content

Reproduction setup to debug why cookies are not set in browser when doing CORS request

License

Notifications You must be signed in to change notification settings

Nargonath/express-cookie-cors-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-cookie-cors-debug

Reproduction setup to debug why cookies are not set in browser when doing CORS request

Solution

The problem was coming from the missing credentials property of fetch. I initially thought that credentials was only to tell the browser to send credentials with the request but it also dictates the browser behavior when receiving credentials from the server. I also needed to set credentials to include in my case.

About

Reproduction setup to debug why cookies are not set in browser when doing CORS request

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published