简体   繁体   English

p3p关于wordpress响应的策略未发送该策略

[英]p3p Policy on wordpress response not sending the policy

I have created the p3p files, placed them in the w3c folder but fiddler2 still returns sets cookies without p3p? 我已经创建了p3p文件,将它们放置在w3c文件夹中,但是fiddler2仍然返回不包含p3p的set cookie?

Wordpress site on iis... iis上的Wordpress网站...

trying to get it to return sets cookies & P3P... 试图让它返回集饼干和P3P ...

I know this is old stuff but client wants it. 我知道这是旧东西,但是客户想要。

What am I missing? 我想念什么?

I had to add this line to the header.php and it sent the proper information in the header. 我必须将此行添加到header.php中,并且它在标头中发送了正确的信息。

<?php language_attributes();

header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); header('P3P:CP =“ IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT”'); ?>> ?>>

After that fiddler2 was green. 之后,小提琴手变成了绿色。

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

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