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

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -