Rousseau Sennett

Rousseau Sennett

  • NA
  • 31
  • 43.1k

Allow access to cookies from different domain through Iframe

Feb 23 2012 5:23 AM
Hi

I found a few answers on the net but none seem to work.

I'm working on a web application in VS2010. I have a page with a Iframe that points to a child website. I would like visitors to be able to work on the child website through the Iframe.

The child website loads fine in my Iframe. But it requires a login which is where the problem comes in. because as I understand Internet Explorer blocks cookies from different domains when it is in a Iframe. I have tested it and when I add the child domain to my IE>Settings>Trusted sites to always allow the login works so that is definitely the problem but I can't expect visitors to know or do this.

I've tried adding:

protected void Application_BeginRequest(object sender, EventArgs e)

{

HttpContext.Current.Response.AddHeader("p3p", @"CP=\IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\");

}


To my web applications Global.asax but with no luck;

I don't have access to code of the child website. Is there anyway I can make this work or even prompt the user to allow access.

Any help would be appriciated.

Thx
Rousseau