Where do I need to set my P3P header to bypass IE8 blocking cookies?
-
03-10-2019 - |
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?
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