I'm trying to play a YouTube video on my Site using iframe
and it's 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><addname="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
</system.webServer>
Note: I added the X-Frame-Options" value="SAMEORIGIN"
option to the configuration file
- What's wrong?