You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making a request where I need to pass the cookies for the current domain to another domain i.e. CORS request. Currently cookies aren't sent when making CORS requests.
This leads to a 401 unauthorised because the cookie isn't sent.
I believe the underlying request is made using XMLHttpRequest. Some documentation suggests you can include cookies when making CORS requests by setting XMLHttpRequest.withCredentials = true.
Thus, it is necessary to modify the "then-request".
The text was updated successfully, but these errors were encountered:
I am making a request where I need to pass the cookies for the current domain to another domain i.e. CORS request. Currently cookies aren't sent when making CORS requests.
The scenario:
I am on https://example.com and I make a request
This leads to a 401 unauthorised because the cookie isn't sent.
I believe the underlying request is made using XMLHttpRequest. Some documentation suggests you can include cookies when making CORS requests by setting XMLHttpRequest.withCredentials = true.
Thus, it is necessary to modify the "then-request".
The text was updated successfully, but these errors were encountered: