title: Refused to display a website in a frame because of its 'X-Frame-Options'
body: <p>I'm trying to display Facebook page in an simple HTML page which only contains an iframe.<br></p>
  
  <p>Here's my HTML code:</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;iframe src="http://www.facebook.com"&gt;&lt;/iframe&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm always getting this error in Google Chrome's console:</p>
  
  <blockquote>
    <p>Refused to display '<a href="http://www.facebook.com/">http://www.facebook.com/</a>' in a frame because it
    set 'X-Frame-Options' to 'DENY'.</p>
  </blockquote>
  
  <p>BTW, I'm having this problem also with these iframes:</p>
  
  <pre><code>&lt;iframe src="https://mail.google.com/mail/mu/mp/any"&gt;&lt;/iframe&gt;
  &lt;iframe src="http://m.facebook.com"&gt;&lt;/iframe&gt;
  &lt;iframe src="http://m.youtube.com"&gt;&lt;/iframe&gt;
  &lt;iframe src="http://m.dropbox.com"&gt;&lt;/iframe&gt;
  &lt;iframe src="http://m.yahoo.com"&gt;&lt;/iframe&gt;
  &lt;iframe src="http://www.google.com"&gt;&lt;/iframe&gt;
  &lt;iframe src="http://mail.google.com"&gt;&lt;/iframe&gt;
  &lt;iframe src="http://www.facebook.com"&gt;&lt;/iframe&gt;
  &lt;iframe src="http://www.youtube.com"&gt;&lt;/iframe&gt;
  &lt;iframe src="http://www.dropbox.com"&gt;&lt;/iframe&gt;
  &lt;iframe src="http://www.yahoo.com"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Meanwhile, this iframe is working well !</p>
  
  <pre><code>&lt;iframe src="http://www.google.com/custom"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p><strong>How to solve this ?</strong></p>
  
  <p><em>EDIT based on comments:</em> <br> Is there an alternative of using iframe if this is unsolvable ? Something like <a href="https://developer.mozilla.org/en-US/docs/XUL/browser"><code>browser</code></a> tag in <a href="https://developer.mozilla.org/en-US/docs/XUL"><code>XUL</code></a> ? I already tried browser tag in Firefox extension and it works well, but I'm now coding a chrome extension, so I cannot depend on XUL anymore ?</p>