react-youtube icon indicating copy to clipboard operation
react-youtube copied to clipboard

Failed to execute 'postMessage' on 'DOMWindow':

Open codeKk21 opened this issue 6 years ago • 5 comments

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.

codeKk21 avatar Dec 03 '19 05:12 codeKk21

I have the same issue here, anyone has a fix for this?

tuanphungcz avatar Dec 18 '19 04:12 tuanphungcz

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.

goto-bus-stop avatar Dec 18 '19 09:12 goto-bus-stop

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

sabit990928 avatar Aug 04 '20 12:08 sabit990928

The issue is still occurring.

SunnyAureliusRichard avatar Mar 24 '23 12:03 SunnyAureliusRichard

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.

goto-bus-stop avatar Mar 24 '23 12:03 goto-bus-stop