Take the 2-minute tour ×

Really cannot understand why yahoo iframe works but the google one does not:

<!DOCTYPE html><html><body>
<iframe frameborder="0" src="http://www.yahoo.com"></iframe>

any ideas?

share|improve this question

2 Answers 2

From http://msdn.microsoft.com/en-us/library/cc288472(v=vs.85).aspx#search


X-Frame-Options: Deny


share|improve this answer
Does SameOrigin accept sub-domains? –  Pacerier Jul 3 '12 at 14:49
@Pacerier I don't believe so: en.wikipedia.org/wiki/… –  wkm Oct 9 '12 at 20:20

Using IE8, I get the following message in the Google iframe

This content cannot be displayed in a frame


Looks like Google uses some code to prevent it's content from being displayed in an iframe


I found a decent explanation here: http://forums.asp.net/p/1733782/4654025.aspx/1?I+am+gettignthe+following+error+in+asp+net+with+facebook+app+early+it+is+working+fine+Once+i+click+on+Open+this+content+in+a+new+window+

share|improve this answer

Your Answer


