javascript - Uncaught Error: Error calling method on NPObject Error with embedded Youtube Video -
i have html page embedd youtube video 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, following error in console.
blocked frame origin "https://www.youtube-nocookie.com" accessing frame origin "http://www.domain.com". frame requesting access has protocol of "https", frame being accessed has protocol of "http". protocols must match.
uncaught error: error calling method on npobject.
how can avoid error?
"youtube-nocookie.com" redirects http request https uses sources inside of page, not secure. if don't have access source of "youtube-nocookie.com" there nothing can do. if have, use https sources or prevent redirect https.
Comments
Post a Comment