Agile Web Development

Build it. Launch it. Love it.

Ie iframe cookies

Rails: Enabled cookies inside IFrames for IE via P3P headers.

IFrames in IE only get the same cookies as normal pages when P3P headers are added
=> 'iframe-using' IE users get P3P headers on every request
304 Not modified pages do not get P3P headers (via ETag)
=> 'iframe-using' IE users do not get 304

sudo gem install ie_iframe_cookies


rails plugin install git://

To cookie-tag users as 'iframe-using', add this to all actions rendered inside IFrames.
(only IE users are tagged)

before_filter :normal_cookies_for_ie_in_iframes! # :only => [:foo, :bar]

Sascha Depold

Michael Grosser
Hereby placed under public domain, do what you want, just do not hold me accountable...


License PublicDomain
Rating (0 votes)
Owner Michael Grosser
Created 4 October 2011


Add a comment