title: SameOrigin Policy interfering with Google Docs
body: <p>I was hosting google docs in an Iframe a few months ago to allow users to pull some PDFS down, but recently I noticed that the iframes I used to show the PDFs are throwing console errors for the SameOrigin Policy preventing the documents from loading. Is there any way around this? </p>
  
  <p>I built the website using asp.net mvc </p>
  
  <p>It would be a handful of iframes to the effect of:</p>
  
  <pre><code>&lt;iframe src="https://docs.google.com/SamplePDFURL" frameborder="0"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>The error looks like</p>
  
  <p>Refused to display <a href="https://docs.google.com/" rel="nofollow">https://docs.google.com/</a><em>SamplePDFURL</em> in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.</p>