html - How to show google.com in an iframe? -


i trying put google.com iframe on website, works many other websites including yahoo. not work google shows blank iframe. why not render? there tricks that?

i have tried in usual way show website in iframe this:

<iframe name="i1" id="if1" width="100%"   height="254" style="visibility:visible"   src="http://www.google.com"></iframe> 

the google.com page not render in iframe, it's blank. going on?

the reason is, google sending "x-frame-options: sameorigin" response header. option prevents browser displaying iframes not hosted on same domain parent page.

see: mozilla developer network - x-frame-options response header


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -