Skip to content

Instantly share code, notes, and snippets.

@jhjguxin
Created September 14, 2012 03:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jhjguxin/3719568 to your computer and use it in GitHub Desktop.
Save jhjguxin/3719568 to your computer and use it in GitHub Desktop.
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