I am making an ajax request using $.ajax. The response has the Set-Cookie header set (I\'ve verified this in the Chrome dev tools). However, the browser does
Set-Cookie
If you're using the new fetch API, you can try including credentials:
fetch
credentials
fetch('/users', { credentials: 'same-origin' })
That's what fixed it for me.
In particular, using the polyfill: https://github.com/github/fetch#sending-cookies