title: Load denied by X-Frame-Options: http://www.youtube.com/v/g5RM5StrMXY does not permit cross-origin framing
body: <p>I have a website in ASP.NET.</p>
  
  <p>After page load, I am getting below error.</p>
  
  <p>Error:
  Load denied by X-Frame-Options: <a href="http://www.youtube.com/v/lgZBsWGaQY0&amp;feature" rel="noreferrer">http://www.youtube.com/v/lgZBsWGaQY0&amp;feature</a> does not permit cross-origin framing.</p>
  
  <p><img src="https://i.stack.imgur.com/eQL32.jpg" alt="enter image description here"></p>
  
  <p>Due to this error, youtube video is not able to open in iframe.</p>
  
  <pre><code>&lt;div style="display: none; position: relative;"&gt;
      &lt;div id="divYouTubeClasses"&gt;
          &lt;iframe id="Iframe1" style="background-color: White !important; border: 0;" width="835"
                      height="430" src="http://www.youtube.com/v/g5RM5StrMXY" scrolling="no"&gt;&lt;/iframe&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Please provide some solution for this error.</p>