3
I’m trying to play a youtube video on my website using iframe
and is generating me the error that is in the title of the question.
HTML:
<div class="video-container">
<iframe
src="https://www.youtube.com/watch?v=65Iz_GKbhHk"></iframe>
</div>
Web.Conf:
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
</system.webServer>
Obs: I added the option to the configuration file X-Frame-Options" value="SAMEORIGIN"
- What’s wrong with it?