Page cannot be displayed error with IE and Iframe, third party cookie related

Page cannot be displayed error with IE and Iframe, third party cookie related

Recently I came across an issue with IE and a web application that was being displayed within an iframe on another parent page.

When I would load the parent page, I would get a “page cannot be displayed error”.

To make a long story short, my web application needed to set a cookie, and because it was being hosted within an Iframe, this was considered third party. In order to allow IE to set this type of cookie, you need to have a Compact Policy header defined for your page.

To do this in ASP.NET, you can programatically add the header in your code behind like so (forgive the formatting, it was difficult to get this to wrap properly):

                "CP="IDC DSP COR ADM DEVi TAIi " +
                "PSA PSD IVAi IVDi CONi HIS OUR IND CNT"");

Once this is done, your page should be able to set the cookie, and the page should show up just fine (assuming you have the default IE security settings)

Many thanks to Adam Young for pointing me in the right direction on this.

Share Your Thoughts!


What My Clients Say

Karin - Hope and Future

Brent has always been very prompt and generally exceeds our expectations with his work. His maintenance fee is very reasonable. I strongly recommend him!  We get many compliments on our beautiful web site!


I contacted Krueger Web Design and Brent did everything.  He setup a test site with the changes so we could verify everything was correct before we transferred from my old hosting provider.  During the setup and conversion Brent was extremely professional and responsive. He responded to any issues the same day.

Dan Kaufman
Emily - GFCLT

We've had a great experience working with Krueger Web Design. Prompt responses, great ideas, effective work... all at a reasonable price! This was the perfect fit for our organization.

Mahmud - ACMC

I would love to recommend you to anyone! You have been very helpful when we needed you the most.

Brian - SEMNIC

Working with Krueger Web Design was effortless. Communicating what I wanted for the website and the results that I saw were identical. The customer service was always prompt and I am completely satisfied with the product.

Zach - Stadium Club

Exactly what I wanted! Fast turnaround time and very affordable. Answered all of our questions quickly and made adjustments promptly. Very easy to work with and puts everything into terminology that even I can understand!

Contact Krueger Web Design

Have a question for me? Need an estimate on some work? You can email me at or drop me a line using the button below:

Copyright © 2018 Krueger Web Design - All rights reserved
Web Design in Madison, WI