Display cross domain content in IFrame (IE8)

杀马特。学长 韩版系。学妹 提交于 2019-12-24 07:39:49

问题


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 : "DENY" (This does not display any IFrame content )

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

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

Thanks in advance


回答1:


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.



来源:https://stackoverflow.com/questions/2448944/display-cross-domain-content-in-iframe-ie8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!