Answer the question
In order to leave comments, you need to log in
Why doesn't IE 11 give cookies for a remote js file on a different domain?
A very interesting situation that only works in IE 11.
There is site1.ru, I set cookies:
setcookie('code', 'secret', time() + 3600 * 24, '/', 'site1.ru');
Everything is fine, when you open site1.ru IE gives the cookie.
Now on site2.ru in HTML code:
<script type="text/javascript" defer="defer" src="http://site1.ru/script.js?_t=1254327162"></script>
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