react-youtube
react-youtube copied to clipboard
Working, but Errormessage in console
Hello! Your app is working very well, however I get an error message in the console: "Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('<URL>') does not match the recipient window's origin ('<URL>').
Do you know any workaround for this?
same here. in my case
The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://localhost:3000')
i am using ReactJS
they said it is https issue. https://stackoverflow.com/questions/27573017/failed-to-execute-postmessage-on-domwindow-https-www-youtube-com-http hope it help you.
by the way i don't know how can i change https on localhost.
Same issue here, this is occurring on my localhost. Will update to see if the issue persists when I push changes to a hosted HTTPS site.
+1
+1
+1, @cjmaria any info regarding this ?
I had the same error, fixed it by setting origin
to window.location.origin
as suggested in one of the answers here: https://stackoverflow.com/questions/27573017/failed-to-execute-postmessage-on-domwindow-https-www-youtube-com-http
playerVars: {
origin: window.location.origin,
},
@ashteya Still the same console error :/