Created
September 14, 2012 03:08
-
-
Save jhjguxin/3719568 to your computer and use it in GitHub Desktop.
rails IE, IFRAME, P3P, COOKIES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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