Uncaught Error: Error calling method on NPObject Error with embedded
Youtube Video
I have a HTML page where I embedd a youtube video with the following code:
<iframe width="600"
height="338"
src="http://www.youtube-nocookie.com/embed/aUHdhfghhahlY?autohide=1&theme=light&loop=1&playlist=edkAiJxQWHQ&hd=1&modestbranding=1&rel=0&showinfo=0&showsearch=0&wmode=transparent&autoplay=1"
>
</iframe>
The video runs fine, but I get the following error in my console.
Blocked a frame with origin "https://www.youtube-nocookie.com" from
accessing a frame with origin "http://www.domain.com". The frame
requesting access has a protocol of "https", the frame being accessed has
a protocol of "http". Protocols must match.
Uncaught Error: Error calling method on NPObject.
How can I avoid this error?