3 ms·
The X-Frame-Options header is sent by YouTube, not by the website. The website appears to be trying to embed a normal YouTube.com link (/watch?) instead of usin
by jeroenhd 5y ago
The X-Frame-Options header is sent by YouTube, not by the website. The website appears to be trying to embed a normal YouTube.com link (/watch?) instead of using its normal embed path (/embed/).
This is probably intentional behaviour by YouTube to prevent clickjacking and the like. I don't think this has ever been how YouTube intended embeds to work, so you can't really blame browsers here. The author should fix their link to get the video to show up.
- nextaccountic 5y agoI was thinking along those lines: this api (content security policy) didn't work with older browsers, because they didn't exist. An older browser wouldn't have blocked this iframe. And by looking up, it would be indeed very old. So yeah my rant didn't apply to this particular instance.