https://github.com/grimen/rack-iframe
Rack middleware for enabling problematic web browsers (Internet Explorer and Safari) to use same cookies in iframes as in parent windows.
https://github.com/grimen/rack-iframe
Last synced: about 1 year ago
JSON representation
Rack middleware for enabling problematic web browsers (Internet Explorer and Safari) to use same cookies in iframes as in parent windows.
- Host: GitHub
- URL: https://github.com/grimen/rack-iframe
- Owner: grimen
- License: mit
- Created: 2011-10-19T14:05:01.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-07-16T19:34:41.000Z (almost 14 years ago)
- Last Synced: 2025-04-05T18:52:57.030Z (about 1 year ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/rack-iframe
- Size: 116 KB
- Stars: 13
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.textile
- License: MIT-LICENSE
Awesome Lists containing this project
README
h1. RACK-IFRAME "!https://secure.travis-ci.org/merchii/rack-iframe.png!":http://travis-ci.org/merchii/rack-iframe
_Rack middleware for enabling problematic web browsers (Internet Explorer and Safari) to use same cookies in iframes as in parent windows._
h2. Background
Best described via:
* "http://tempe.st/tag/ruby-on-rails":http://tempe.st/tag/ruby-on-rails
* "http://groups.google.com/group/rack-devel/browse_thread/thread/11da5971522b107b":http://groups.google.com/group/rack-devel/browse_thread/thread/11da5971522b107b
* "http://grack.com/blog/2010/01/06/3rd-party-cookies-dom-storage-and-privacy":http://grack.com/blog/2010/01/06/3rd-party-cookies-dom-storage-and-privacy
* "http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari":http://anantgarg.com/2010/02/18/cross-domain-cookies-in-safari
h2. Installation
Add to your @Gemfile@:
gem 'rack-iframe'
...and @bundle install@.
h2. Usage
*Minimal:*
require 'rack/iframe'
use Rack::Iframe
*Custom - P3P header:*
require 'rack/iframe'
use Rack::Iframe, :p3p => %(CP="NOI DSP LAW NID")
h2. Test
$ bundle exec rake test
...or using "Guard":http://github.com/guard/guard:
$ bundle exec guard
h2. Notes
This gem was developed for our own requirements at *"Merchii":http://github.com/merchii*, so feel free to send pull-requests with enhancements of any kind (features, bug-fixes, documentation, tests, etc.) to make it better or useful for you as well.
h2. To-Do
Still not ready for prime-time. See "TODO":https://github.com/merchii/rack-iframe/blob/master/TODO.
h2. License
Released under the MIT license.
Copyright (c) "Jonas Grimfelt":http://github.com/grimen, "Jaakko Suutarla":http://github.com/jaakkos, "Merchii":http://github.com/merchii