拒绝显示在框架中,因为它将"X-Frame-Options"设置为"SAMEORIGIN" [英] Refused to display in a frame , because it set 'X-Frame-Options' to 'SAMEORIGIN'

查看:989
本文介绍了拒绝显示在框架中,因为它将"X-Frame-Options"设置为"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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆