J
J
jeruthadam2019-08-08 23:18:12
User identification
jeruthadam, 2019-08-08 23:18:12

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.comand at the same time a cookie is set for authserver.com
. After that, I make an AJAX request to authserver.combut 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

2 answer(s)
T
ThunderCat, 2019-08-09
@ThunderCat

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).

D
Daria Motorina, 2019-08-08
@glaphire

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 question

Ask a Question

731 491 924 answers to any question