简体   繁体   中英

Cross Domain Cookies with IFrame in Internet Explorer

I had a client's requirement for opening a another domain link in Iframe. This thing works fine with Firefox, Chrome but in Internet Explorer its giving error that cookies are not enabled. When I directly open that link it work fine with IE, but with IFrame its not the same case. I did some search on Google and didn't find a proper answer for it. I just want to confirm is there any coding fault from my side? I also found this solution for the problem

In PHP:

header ( "p3p:CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");

But its not working on my case. I am not sure where should I put this, because I can change the code of my website if require. But I can't change the Iframe site, Since we are not the owner.

This project is built in PHP.

Any help would be much appreciated. Thanks in advance

The subframe's cookies are blocked by the browser's Cookie Privacy feature.

That subframe (the one setting the cookies) must send a P3P statement indicating how the cookies will be used in order for the browser to accept them.

Specifying the P3P statement in the outer frame is not sufficient and will not help anything.

Are you runnig IE in protected mode? It can be a security exception. Go to a IE settings and take a look if IFRAME isn't disabled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM