JORGEMAL Posted August 7, 2013 Share Posted August 7, 2013 I have a web page with a YouTube video inside an iframe tag as follows: <iframe class = "<any class here>" id = "YTVideo" src = "http://www.youtube.com/embed/<any YouTube id>?autoplay=0"> </iframe> But I am getting an error in the Google Chrome console: Blocked a frame with origin "http://www.youtube.com" from accessing a frame with origin "http://www.mywebsite.com". Protocols, domains, and ports must match. I have tried FireFox and such an error does not appear. I will appreciate any comments. Respectfully, Jorge Maldonado Link to comment Share on other sites More sharing options...
Ingolme Posted August 7, 2013 Share Posted August 7, 2013 It sounds like the content inside the frame was trying to read or write something in your website's DOM. Are you using the code youtube gave you or did you try making your own? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now