Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails: Normal cookies inside IFrames for IE via P3P headers

branch: master

v0.1.6

latest commit 5b94b7d6b1
Michael Grosser authored
Octocat-spinner-32 gemfiles red-green
Octocat-spinner-32 lib v0.1.6
Octocat-spinner-32 test red-green
Octocat-spinner-32 .travis.yml wwtd
Octocat-spinner-32 Gemfile abandon appraisal
Octocat-spinner-32 Gemfile.lock v0.1.6
Octocat-spinner-32 MIT-LICENSE certs
Octocat-spinner-32 Rakefile abandon appraisal
Octocat-spinner-32 Readme.md travis
Octocat-spinner-32 gem-public_cert.pem certs
Octocat-spinner-32 ie_iframe_cookies.gemspec certs
Readme.md

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

gem install ie_iframe_cookies

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]

TIPS

  • Problems with Safari? try this or that

Authors

Contributors

Sascha Depold

Michael Grosser
michael@grosser.it
License: MIT
Build Status

Something went wrong with that request. Please try again.