문제

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