Youtube iFrame: Insecure Javascript trying to access frame

I get this error on the website I'm working on, I simplified the code to the example below, which causes this error in webkit (chrome 15.0.x), I don't see the error in firefox.

I looked at other SO posts regarding the same error, and most of them relate to using the youtube API and cross-references.

I tried:

change doctype, (no difference) adding the original parameters to the youtube call (no difference)

<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <title></title> </head> <body class="page front logged-in no-sidebars"> <iframe width="393" height="230" src="http://www.youtube.com/embed/QH2-TGUlwu4" frameborder="0" ></iframe> </body> </html> 
+4
source share
1 answer

This is a common cross-site messaging issue (where one page / site interacts with another page / website through an IFrame, using javascript callbacks as an environment). This does not always succeed, and some browsers may not always catch the callback event and may report it as a security error if the protocol or port is different.

+1
source

All Articles