HttpContext.Current.Response.AddHeader("p3p", "CP=\""IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""")
Code language: Java (java)
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
Code language: PHP (php)
response.setHeader("P3P","CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'")
Code language: Java (java)
<cfheader name="P3P" value="CP='IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'" />
Code language: HTML, XML (xml)
The above code will set P3P (Platform for Privacy Preferences Project) header. It allows the browser (specially Internet Explorer) to through all the third-party cookies (which may be set through iFrame). Java URL Encoder/Decoder Example - In this tutorial we will see how to URL encode/decode…
Show Multiple Examples in OpenAPI - OpenAPI (aka Swagger) Specifications has become a defecto standard…
Local WordPress using Docker - Running a local WordPress development environment is crucial for testing…
1. JWT Token Overview JSON Web Token (JWT) is an open standard defines a compact…
GraphQL Subscription provides a great way of building real-time API. In this tutorial we will…
1. Overview Spring Boot Webflux DynamoDB Integration tests - In this tutorial we will see…
View Comments
how to delete the third-party cookies, when i using p3p cookies?
hi viral,
Ur blog is quiet interesting..... Today i spend more time in ur blog.... Make it quiet more active dude.... have in touch thro' my mail id....
Thanks Murali for the comments...
And do visit again.. you may find more interesting things on this.
This exactly solves my problem thanks
Or, you can do this in .htaccess file on APACHE:
Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""
Is this all that I have to do? Just set the P3P in the header? Do I have to create an /w3c/p3p.xml document as well? Anything else? Thanks
Hello Brian, Just set the P3P header with the said values and it will do the rest :)
Hey, it was just what i needed! thanks a lot.
Works for IE, but not Safari. How do you solve the problem for Safari?
I'm trying this with a Drupal powered site, in particular on this page http://www.clubtalk.co.uk/online-billing
I've tried adding the PHP code into one of the theme files but it doesn't seem to work. Anyone know what to do when it comes to Drupal and themes?