I’m tring to embed a webpage in an iframe, but it doesn’t work at all. internal pages with relative path are displayed normally. but this simple code doesn’t work:
<iframe src="http://www.google.com/"></iframe>
the place that supposed to show the iframe is just empty. i looked in the page source and there is nothing after
How can this be?
Google uses an X-FRAME-OPTIONS HTTP header to disallow putting their pages in iframes:
https://developer.mozilla.org/en/The_X-FRAME-OPTIONS_response_header
Almost all modern browsers will refuse to put pages with this HTTP header in an iframe. There’s nothing you can do about that.