Browse files

p3p header was placed outside the context of controller

  • Loading branch information...
1 parent 023ff57 commit e2045cdd2a8a7f6d48a5c6ecd1efe989359ec0ab @pomartel pomartel committed with mmangino Apr 1, 2011
Showing with 9 additions and 8 deletions.
  1. +2 −2 .gitignore
  2. +7 −6 lib/facebooker2/rails/controller.rb
View
4 .gitignore
@@ -1,4 +1,4 @@
*.swp
.bundle
-Gemfile.lock
-
+.rvmrc
+Gemfile.lock
View
13 lib/facebooker2/rails/controller.rb
@@ -194,13 +194,14 @@ def set_fb_cookie(access_token,expires,uid,sig)
#My browser doesn't seem to save the cookie if I set expires
cookies[fb_cookie_name] = { :value=>value }#, :expires=>expires}
end
- end
+
- # For canvas apps, You need to set the p3p header in order to get IE 6/7 to accept the third-party cookie
- # For details http://www.softwareprojects.com/resources/programming/t-how-to-get-internet-explorer-to-use-cookies-inside-1612.html
- def set_p3p_header_for_third_party_cookies
- response.headers['P3P'] = 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'
+ # For canvas apps, You need to set the p3p header in order to get IE 6/7 to accept the third-party cookie
+ # For details http://www.softwareprojects.com/resources/programming/t-how-to-get-internet-explorer-to-use-cookies-inside-1612.html
+ def set_p3p_header_for_third_party_cookies
+ response.headers['P3P'] = 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'
+ end
+
end
-
end
end

0 comments on commit e2045cd

Please sign in to comment.