we built a webapp. On IE we need to allow third party cookies. We are using Java Server Faces. Anyway we are looking for the best way to deliver the P3P-Header? We thought about Apache configuration files. Is it possible to detect InternetExplorer on this level or is it better to check for browser in the application?

Thanks in advance.

有帮助吗?

解决方案

Since it should be a static P3P policy, the elegant way would be to put it in the Apache config with

BrowserMatch . . 
Header . . .  env=

其他提示

Okay, this works for me (at the end of Apache http.conf, set-header-module is enabled):

BrowserMatch MSIE IS_MSIE
Header add P3P "CP=\"NOI DSP COR CURa ADMa DEVa OUR IND OTC\"" env=IS_MSIE
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top