We shouldn't rely on global session state for XHRs
Closed this issue · 1 comments
flaki commented
The Fetch API doesn't send credentials, such as cookies by default, this should break XHR calls, but currently it doesn't as the code can rely on the session set on the global state (cSess
).
flaki commented
{ credentials: 'same-origin' }
should be used on the fetch options object.