且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

嵌入 *** 视频 - 拒绝在框架中显示,因为它将“X-Frame-Options"设置为“SAMEORIGIN"

更新时间:2021-09-09 21:56:49

您必须确保 URL 包含 embed 而不是 watch 作为 /embed 端点允许外部请求,而 /watch 端点不允许.

You must ensure the URL contains embed rather watch as the /embed endpoint allows outside requests, whereas the /watch endpoint does not.

<iframe width="420" height="315" src="https://www.***.com/embed/A6XUVjK9W4o" frameborder="0" allowfullscreen></iframe>