拒绝在框架中显示"URL",因为它将"X-Frame-Options"设置为"SAMEORIGIN" [英] Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
本文介绍了拒绝在框架中显示"URL",因为它将"X-Frame-Options"设置为"SAMEORIGIN"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<script async="" defer="" src="//survey.g.doubleclick.net/async_survey?site=vj2nngtlb7sbtnveaepk5so4ke"></script>
错误的屏幕截图:
我得到了
Refused to display 'https://survey.g.doubleclick.net/gen204/d?zx=5cbpafvsv9le' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
Google调查设置错误.
error with the google survey setup.
推荐答案
显示YouTube链接时遇到相同的错误.例如: https://www.youtube.com/watch?v=8WkuChVeL0s
I faced the same error when displaying YouTube links.
For example: https://www.youtube.com/watch?v=8WkuChVeL0s
我将 watch?v =
替换为 embed/
,因此有效链接为: https://www.youtube.com/embed/8WkuChVeL0s
I replaced watch?v=
with embed/
so the valid link will be:
https://www.youtube.com/embed/8WkuChVeL0s
效果很好.
尝试对您的案件应用相同的规则.
Try to apply the same rule on your case.
这篇关于拒绝在框架中显示"URL",因为它将"X-Frame-Options"设置为"SAMEORIGIN"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文