Skip to content

Rails: Normal cookies inside IFrames for IE via P3P headers

Notifications You must be signed in to change notification settings

fuelxc/ie_iframe_cookies

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Install

sudo gem install ie_iframe_cookies

Or

rails plugin install git://github.com/grosser/ie_iframe_cookies.git

Usage

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]

Authors

Sascha Depold

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

About

Rails: Normal cookies inside IFrames for IE via P3P headers

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%