Inserts P3P headers to allow cookies to be utilized in iframe scenarios with IE.
Add this line to your application's Gemfile:
gem 'p3p'
And then execute:
$ bundle
Or install it yourself as:
$ gem install p3p
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"'
Just add the gem into your Gemfile and bundle! That's it!
require 'p3p'
use P3P::Middleware
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request