Created
May 22, 2012 01:21
-
-
Save rylanb/2765933 to your computer and use it in GitHub Desktop.
Facebook IFrame Canvas Flash Issue in Internet Explorer
This file contains hidden or 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
headers 'Content-Type' => "text/html;charset=utf-8", | |
'Last-Modified' => Time.now.httpdate, | |
'P3P' => 'CP="CAO PSA OUR"', | |
'X-UA-Compatible' => 'IE=edge' | |
#Might not hurt either in the html header: <meta http-equiv="X-UA-Compatible" content="IE=7" /> |
This file contains hidden or 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
In Internet Explorer there was an issue where the iframe/canvas embed for a Facebook App would cause flashing as the app redirected to itself over and over as it was blocking any sort of cookies set from an external url... | |
Source of final AHA: | |
http://duanesbrain.blogspot.com/2007/11/facebook-ie-and-iframes.html | |
View the Page's Privacy Policy in Internet Explorer and you should see external cookies blocked for your app that is hosted elsewhere. | |
Solution: | |
Set the headers properly! (Or check if you aren't loading a file properly like Duane's solution). | |
PHP: | |
header('P3P: CP="CAO PSA OUR"') | |
Sinatra/Ruby below |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment