-1

I have this piece of code in HTML file

<iframe width="560" height="315" 
        src="https://www.youtube.com/embed/i6iBAuwBODA">
        </iframe>

And it doesn't work, just saying "Video is unavailable". what should I do to solve this problem? Thank you.

2 Answers2

0

Copy the iframe tag directly from youtube that should work. Go to youtube video > share > embed

sanket
  • 74
  • 1
  • 8
0

JS console says:

local-ntp.js:2084 GET chrome-search://local-ntp/search-suggestions.js net::ERR_FAILED requestAndInsertGoogleResources @ local-ntp.js:2084 init @ local-ntp.js:900 local-ntp.html:1 Refused to frame 'https://www.youtube.com/' because it violates the following Content Security Policy directive: "child-src chrome-search://most-visited/ https://*.google.com/". Note that 'frame-src' was not explicitly set, so 'child-src' is used as a fallback

idk if that helps

EDIT:

Wait what??? Works fine now.