title: Embed YouTube video - Refused to display in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
body: <p>I am trying to feed my Django page with some resource I am getting from somewhere else. </p>
  
  <p>Inside the feed, I have YouTube videos with URL like: <code>https://www.youtube.com/watch?v=A6XUVjK9W4o</code></p>
  
  <p>Once I added this into my page, the video does not show up, saying: </p>
  
  <blockquote>
    <p>Refused to display '<a href="https://www.youtube.com/watch?v=A6XUVjK9W4o" rel="noreferrer">https://www.youtube.com/watch?v=A6XUVjK9W4o</a>' in a
    frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.</p>
  </blockquote>
  
  <p>Then I said, well, what if I change <code>watch</code> to <code>embed</code>. Then YouTube player shows up, but no video, saying: </p>
  
  <p><img src="https://i.stack.imgur.com/Ar3NQ.png" alt="Enter code here"></p>
  
  <p>How can I get this to work? </p>
  
  <p>I am showing it in HTML like this: </p>
  
  <pre><code>&lt;iframe width="420" height="315"
      src="{{vid.yt_url}}"&gt;
  &lt;/iframe&gt;
  </code></pre>
  
  <p>I googled almost for an hour, but no sign of success. I tried to append <code>&amp;output=embed</code> - nada...</p>