简体   繁体   English

为IE-8提供P3P http标头

[英]Deliver P3P http headers for IE-8

we built a webapp. 我们建立了一个webapp。 On IE we need to allow third party cookies. 在IE上我们需要允许第三方cookie。 We are using Java Server Faces. 我们正在使用Java Server Faces。 Anyway we are looking for the best way to deliver the P3P-Header? 无论如何,我们正在寻找提供P3P-Header的最佳方式? We thought about Apache configuration files. 我们考虑过Apache配置文件。 Is it possible to detect InternetExplorer on this level or is it better to check for browser in the application? 是否可以在此级别检测InternetExplorer,或者更好地检查应用程序中的浏览器?

Thanks in advance. 提前致谢。

Since it should be a static P3P policy, the elegant way would be to put it in the Apache config with 因为它应该是一个静态的P3P策略,所以优雅的方式是将它放在Apache配置中

BrowserMatch . . 
Header . . .  env=

Okay, this works for me (at the end of Apache http.conf, set-header-module is enabled): 好的,这对我有用(在Apache http.conf的末尾,启用了set-header-module):

BrowserMatch MSIE IS_MSIE
Header add P3P "CP=\"NOI DSP COR CURa ADMa DEVa OUR IND OTC\"" env=IS_MSIE

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

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