M
M
Malin2015-03-05 18:23:41
PHP
Malin, 2015-03-05 18:23:41

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>

IE when requesting " site1.ru/script.js?_t=1254327162 " does not pass the cookie! The information is accurate, I checked the headers with which IE breaks, cookies are definitely not among them.
Help me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
uyrij, 2015-03-05
@uyrij

Browser Options - Security : XSS Filter Off ?
data transfer between domains - allow?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question