Answer the question
In order to leave comments, you need to log in
Is it possible to set cookies for the domain from which the .js file is loaded?
On the site-A.ru site pages, I load the file.js script located on the site-B.ru
site-A.ru/page1.htm site :
<script type="text/javascript" src="http://site-B.ru/file.js"></script>
Answer the question
In order to leave comments, you need to log in
Only if they are both subdomains of the same domain, then you can set the cookie for the higher order domain.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question