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