Answer the question
In order to leave comments, you need to log in
Is there a way to pass data using JS with cookies?
The other day I started to study XMLHttpRequest and came to the conclusion that cross-domain requests using cookies are impossible.
This is the code that won't work. XMLHttpRequest is not designed to work with Cookies
var xhr = new XMLHttpRequest;
xhr.withCredentials = true;
xhr.setRequestHeader('Cookie', 'x=x');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question