且构网

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

拒绝在框架中显示"URL",因为它将"X-Frame-Options"设置为"SAMEORIGIN"

更新时间:2021-09-09 21:57:07

显示***链接时遇到相同的错误.例如: https://www.***.com/watch?v=8WkuChVeL0s

I faced the same error when displaying *** links. For example: https://www.***.com/watch?v=8WkuChVeL0s

我将 watch?v = 替换为 embed/,因此有效链接为: https://www.***.com/embed/8WkuChVeL0s

I replaced watch?v= with embed/ so the valid link will be: https://www.***.com/embed/8WkuChVeL0s

效果很好.

尝试对您的案件应用相同的规则.

Try to apply the same rule on your case.