Skip to content

Commit

Permalink
p3p header was placed outside the context of controller
Browse files Browse the repository at this point in the history
  • Loading branch information
pomartel authored and mmangino committed Apr 1, 2011
1 parent 023ff57 commit e2045cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.swp
.bundle
Gemfile.lock

.rvmrc
Gemfile.lock
13 changes: 7 additions & 6 deletions lib/facebooker2/rails/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.