2

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 request or on my web page?

Jones
  • 299
  • 2
  • 5
  • 11

2 Answers2

0

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

Jones
  • 299
  • 2
  • 5
  • 11
0

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 .

Isabel Jinson
  • 8,541
  • 16
  • 59
  • 75