I post a Youtube video on my website like this:
<iframe class="frame-for-top" width="300" height="200" src="https://www.youtube.com/embed/nb9GMm7QtlM" frameborder="0" allowfullscreen></iframe>
Now, when I open the console, I get an error message for all of my embedded YouTube videos that say:
: 1 Uncaught SecurityError: the frame with the source " https://www.youtube.com " was blocked from accessing the frame with the source code " http://mywebsite.com ". The request for access to the frame has the protocol "https", access to the frame has the protocol "http". protocols must comply.
I tried changing the "src" in the iframe to http , not https , but I don't know if it's ok to do this. Any feedback?
UPDATE:
still getting errors even in a JS script;

source
share