I am embedding a Youtube video on my website like so:
<iframe class="frame-for-top" width="300" height="200" src="https://www.youtube.com/embed/nb9GMm7QtlM" frameborder="0" allowfullscreen></iframe>
Now when I open up my console I get an error message for all of my embedded youtube videos that says:
:1 Uncaught SecurityError: Blocked a frame with origin "https://www.youtube.com" from accessing a frame with origin "http://mywebsite.com". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
I tried changing the "src" in the iframe to http instead of https seems to work but I don't know if that's ok to do. Any feedback?
UPDATE:
still getting the errors even in the JS fiddle;