Answer the question
In order to leave comments, you need to log in
Why isn't the third server's cookie being passed on an AJAX request to the third server?
My site example.com
When loading the site, I request a file from authserver.com
and at the same time a cookie is set for authserver.com
. After that, I make an AJAX request to authserver.com
but this cookie is not transmitted! Why and how to convey it? After all, she's worth it.
Answer the question
In order to leave comments, you need to log in
Judging by the comments, you have heard about CORS, but you do n’t know how they work . In short: a script taken from a "third site" can (and will) use cookies from a third site. The script taken from example.com will only work with the example.com domain (including its cookies).
Because you can operate cookies within the same domain, this is determined by the browser's security settings.
Bypass: article
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question