Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 516 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 516 Bytes

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.