brandly / angular-youtube-embed

:tv: Embed a YouTube player with a simple directive
http://brandly.github.io/angular-youtube-embed/
MIT License
510 stars 147 forks source link

Getting SecurityError from youtube API #149

Open supadupdip opened 7 years ago

supadupdip commented 7 years ago

I am trying to deploy the directive on an https site and I'm getting the following error in the console when the page loads:

SecurityError (DOM Exception 18): Blocked a frame with origin "https://www.youtube.com" from accessing a frame with origin "https://my.miraclemessages.org". Protocols, domains, and ports must match

The play still works on desktop but when i move it over to check on mobile it causes errors on the page that causes the rest of the application to error. Any ideas on how to properly implement this on an https site?