Skip to content

Commit

Permalink
Updated Readme with info on getting remote server cookies to work in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeutsch committed Jun 15, 2011
1 parent c518e2f commit ad58002
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Expand Up @@ -203,3 +203,30 @@ redirected back to the local domain, the full response can be fetched. There
are limits on the response size using this method but the limits are somwhere
in the 10mb range. Note that the only limits placed on requests themselves are
the normal form limitations.

# Gotchas

Internet Explorer blocks cookies from iframes, so if you're setting cookies
on the remote server you must add a P3P header for IE to accept the cookie.

More info: http://adamyoung.net/IE-Blocking-iFrame-Cookies

## PHP:

header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');


## ASP.NET:

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


## Django:

response = render_to_response('mytemplate.html')
response["P3P"] = 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'


## JSP:

response.addHeader("P3P","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"")

0 comments on commit ad58002

Please sign in to comment.