Why is this iframe not loading?

How can I get an embedded YouTube video to load within an iframe?

  • StackOverflow has failed me so I'm reaching out to the Quora community. YouTube videos are currently showing up as a blank black box when embedded within an iframe: http://www.chatsports.com/nfl/a/Peyton-and-Eli-Mannings-Rap-Song-Is-the-Greatest-Thing-to-Ever-Hit-the-Internet-2-8266679 In my Chrome console I get: Blocked a frame with origin "http://www.chatsports.com" from accessing a frame with origin "http://bleacherreport.com". Protocols, domains, and ports must match. StumbleUpon has made it work: http://www.stumbleupon.com/su/21ziPh/www.gurl.com/favorite-youtube-girl-vloggers What are my options for getting embedded YouTube videos within an iframe to load just like StumbleUpon does? Related: I recently had a very similar with JS comments not loading which was resolved by adding allow-same-origin to the iframe tag.

  • Answer:

    You are loading an entire website in an iframe. That's the mismatch because the source is a separate domain and you probably don't have a cross domain policy set up. Your page source = <!DOCTYPE html><html lang="en" id="iframeHTML"> YouTubes are pretty straight forward if you embed them in a site you have administrative control over. <iframe width="450" height="253" src="//http://www.youtube.com/embed/jn5zytfm9No" frameborder="0" allowfullscreen></iframe>

Stu Rader at Quora Visit the source

Was this solution helpful to you?

Other answers

you can get help from https://developers.google.com/youtube/iframe_api_reference -------------------------------- http://igalorian.com/

Vipin Srivastava

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.