Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
This gem simply inserts P3P headers into IE responses allowing your application to serve cookies when within an iframe.
branch: master
Failed to load latest commit information.
lib Refactor
spec Refactor RSpec tests
.gitignore Initial Commit
.rspec Move RSpec configuration to .rspec
.rubocop.yml Refactor
.travis.yml Update .travis.yml script
Gemfile Fix Ruby 1.8 mime-types dependency
LICENSE.txt Initial Commit
README.md Update README
Rakefile Refactor RSpec tests
p3p.gemspec Refactor RSpec tests

README.md

P3P

Inserts P3P headers to allow cookies to be utilized in iframe scenarios with IE.

Installation

Add this line to your application's Gemfile:

gem 'p3p'

And then execute:

$ bundle

Or install it yourself as:

$ gem install p3p

Usage

Configuration

You can customize the P3P header text, if you so desire.

P3P.configure do |config|
  config.header = 'CP="CAO PSA OUR"'
end

# Default Header: 'CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"'

Rails

Just add the gem into your Gemfile and bundle! That's it!

Rack

  require 'p3p'
  use P3P::Middleware

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Bitdeli Badge

Something went wrong with that request. Please try again.