Pergunta

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?

Foi útil?

Solução

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

Outras dicas

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 .

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top