+ 1
Could someone help me in HTML ? error using <iframe>
"Refuse to display "youtube url" in a frame because it set 'X-Frame-Options' to 'sameorigin'. Line: 1" How can I change that opition ?
2 Respuestas
+ 1
Victor Gabriel hi,
There are some Infos here, it seems you can't change that because it is a rule set by the URL owner.
https://stackoverflow.com/questions/27358966/how-to-set-x-frame-options-on-iframe
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
+ 1
Victor Gabriel
Unfortunately, you can't chane that.
To embed a YouTube video:
1. Go to YouTube - Desktop site. (in a PC or in Chrome with Request Desktop Site option enabled on Mobile)
2. Search for the video you want to embed.
3. Open the video and click Share.
4. It should give a option to Embed.
5. Copy that iframe code and paste it in your web page.