4
votes

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://my-site.ru').

Nginx is on the sever. And of course there is a https!

But I got this error... and only in Google Chrome video didn`t start, Firefox shows all right (and Edge)!

2

2 Answers

2
votes

Wow, strange error, "visibility = hidden" is a reason. Be sure that the playback container (like its parents) is displayed before starting the player.

0
votes

We had the same issue with visibility = hidden and we were able to achieve pretty much the same trick by using CSS opacity 0.