IFrame:此内容无法在框架中显示 [英] IFrame: This content cannot be displayed in a frame

查看:27
本文介绍了IFrame:此内容无法在框架中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个内部网站.我试图在另一个站点的 iframe 中显示一个人的内容.但是我收到此消息:此内容无法显示在框架中."我已阅读收到此消息的原因,但我想绕过它,因为这些站点是内部站点,而且我不担心有人试图劫持我的用户.我在网上搜索后找不到绕过它的方法,但感觉应该是可能的,因为其余的消息似乎暗示了这一点.

I have two internal sites. I'm trying to show one's content in the iframe of the other site. However I'm getting this message: "This content cannot be displayed in a frame." I've read the reason I'm getting this message but, I would like to bypass it since the sites are internal and I'm not concerned with someone trying to hijack my users. I couldn't find a way to bypass it after searching the internet, but feel like it should be possible because the rest of the message seems to hint at it.

为了帮助保护您输入到本网站的信息的安全,此内容的发布者不允许将其显示在框架中."

既然我是发布者,我怎样才能让它显示在框架中?谢谢!

Since I'm the publisher how can I allow it to be displayed in the frame? Thanks!

推荐答案

use 在一到在 iframe 中显示以允许它.

use <meta http-equiv="X-Frame-Options" content="allow"> in the one to show in the iframe to allow it.

这篇关于IFrame:此内容无法在框架中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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