Failed to execute 'postMessage' on 'DOMWindow':
Console error message - Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://localhost:3000').
Please suggest a fix around this if someone has gone through this.
I have the same issue here, anyone has a fix for this?
Does this actually affect the functioning of the component? IIRC those messages appear even if you use the raw <iframe> API, but they don't actually affect anything.
e; Ah, I thought I'd seen this before :smile: A related issue on another react-youtube component: https://github.com/tjallingt/react-youtube/issues/85
It looks like that was caused by a http/https mismatch. Not entirely sure if that's the same thing.
I have the same problem and it looks like it make sence in my case. I'll add some details later if can't fix the issue independently
The issue is still occurring.
Do you see an actual problem or only a log message? It's expected behaviour with the YouTube API as far as I can tell.