显示跨域内容的IFrame(IE8) [英] Display cross domain content in IFrame (IE8)

查看:386
本文介绍了显示跨域内容的IFrame(IE8)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到,IE​​8不会允许跨域链接显示在iframe中。 好像只有两个头选项,微软允许修改。

I realized that IE8 does not allow links from cross domains to be displayed in IFrame. It seems like there are only two Header options that Microsoft allows to modify.

  1. X-FRAME-OPTIONS:拒绝(这不会显示任何IFrame的内容)

  1. X-FRAME-OPTIONS : "DENY" (This does not display any IFrame content )

X-FRAME-OPTIONS:SAMEORIGIN(显示来自同一个域的内容)

X-FRAME-OPTIONS : "SAMEORIGIN" (Displays content from the same domain)

有没有变通,以允许显示来自其他域的内容?

Is there a work around to allow content from other domains to be displayed?

在此先感谢

推荐答案

点源到内部,动态的(服务器生成的)页面,只需将代理外部网页。 I.E.你打 SRC =myContent.asp,你会得到 www.google.com ,或同等学历。

Point your source to an internal, dynamic (server-generated) page that simply proxies the external web page. I.E. You hit src="myContent.asp", and you get www.google.com, or equivalent.

这篇关于显示跨域内容的IFrame(IE8)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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