开发者

Where do I need to set my P3P header to bypass IE8 blocking cookies?

I'm including a javascript file on my page that has a Set-Cookie header. However, the cookie is being blocked by IE8.

Where do I set my P3P response header to prevent IE8 from blocking the cookie, on the javascript file reques开发者_C百科t or on my web page?


I've setup a test case, and it appears that the P3P response header needs to be received from the javascript request.


You have to add the below code to your login page action/servlet java file or place where the first response come.

response.addHeader("P3P","CP=\\\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\\\"");

Please let me know if it is not working .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜