我有一个 HTML 页面,我在其中嵌入了一个带有以下代码的 youtube 视频:
<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>
视频运行良好,但我在控制台中收到以下错误。
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.
未捕获的错误:在 NPObject 上调用方法时出错。
我怎样才能避免这个错误?