Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rack middleware for enabling problematic web browsers (Internet Explorer and Safari) to use same cookies in iframes as in parent windows.
Ruby
Tree: 32c9f2fb02

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/rack
spec
.gitignore
.travis.yml
Gemfile
Guardfile
MIT-LICENSE
README.textile
Rakefile
TODO
rack-iframe.gemspec

README.textile

RACK-IFRAME

Rack middleware for enabling problematic web browsers (Internet Explorer and Safari) to use same cookies in iframes as in parent windows.

Background

Best described via:

Installation

Add to your Gemfile:

  gem 'rack-iframe'

…and bundle install.

Usage

Minimal:

  require 'rack/iframe'

  use Rack::Iframe

Custom – P3P header:

  require 'rack/iframe'

  use Rack::Iframe, :p3p => %(CP="NOI DSP LAW NID")

Test

  $ bundle exec rake test

…or using Guard:

  $ bundle exec guard

Notes

This gem was developed for our own requirements at 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.

To-Do

Still not ready for prime-time. See TODO.

License

Released under the MIT license.
Copyright © Jonas Grimfelt, Jaakko Suutarla, Merchii

Something went wrong with that request. Please try again.