简体   繁体   English

在html或使用javascript中设置p3p标头

[英]set p3p header in html or using javascripts

there are site A and B which communicate Using easyXDM 有站点A和B可以使用easyXDM进行通信

i try to set cookies of site B using site A chrome and mozilla allow to set cookies but ie not allow to set cookie some security polices 我尝试使用站点A chrome和mozilla设置站点B的cookie,但允许设置cookie,但不允许某些安全策略设置cookie

for which site have to set p3p header ? 在哪个站点必须设置p3p标头?

<meta http-equiv="P3P" content='CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'> 

i set header in html but then also not able to set cookie 我在html中设置了标头,但随后也无法设置cookie

you would set the P3P in your main page that revives cookies for a different domain 您需要在主页上设置P3P,以恢复其他域的Cookie

to set a header for p3p for a jsp you could do it like this 为jsp的p3p设置标头,您可以像这样

response.setHeader("P3P","CP='IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA'")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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