拒绝显示在框架中,因为它将"X-Frame-Options"设置为"SAMEORIGIN" [英] Refused to display in a frame , because it set 'X-Frame-Options' to 'SAMEORIGIN'
问题描述
我正在开发一个包含简单iframe的网站
<iframe src="" frameborder="0" scrolling="no" id="product" width="100%" height="100%"></iframe>
我在控制台中收到以下错误消息: 拒绝显示" http://fr.allsaints.com/women/shop-accessories/allsaints-rally-keyfob/?colour=42&category=700 ",因为它将"X-Frame-Options"设置为"SAMEORIGIN". /p>
如何显示它?
您可以要求运行该网站的任何人授予您构架该网站的权限.
无法绕开来自其他站点的显式权限拒绝.
I am developing a website that include a simple iframe
<iframe src="" frameborder="0" scrolling="no" id="product" width="100%" height="100%"></iframe>
I have this error message in the console: Refused to display 'http://fr.allsaints.com/women/shop-accessories/allsaints-rally-keyfob/?colour=42&category=700' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
How can I do to display it?
You can ask whomever runs that website to grant you permission to frame it.
There's no way to bypass the explicit permission denial from a different site.
这篇关于拒绝显示在框架中,因为它将"X-Frame-Options"设置为"SAMEORIGIN"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!