Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rails IE, IFRAME, P3P, COOKIES
#userful gem [rack-p3p](https://github.com/hoopla/rack-p3p)
# [ie_iframe_cookies](https://github.com/grosser/ie_iframe_cookies)
# encoding: utf-8
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :set_p3p
def set_p3p
headers['P3P'] = "policyref=\"/w3c/p3p.xml\", CP=\"ALL DSP COR CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT\""
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.