显示跨域内容的IFrame(IE8)域内、IFrame

2023-09-07 00:16:00 作者:青衫栀拾

我意识到,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.

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

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.