nk-o / jarallax

Parallax scrolling for modern browsers
https://jarallax.nkdev.info
MIT License
1.39k stars 214 forks source link

"Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube-nocookie.com') does not match the recipient window's origin ('https://myapp.com')" #204

Closed abvas closed 2 years ago

abvas commented 2 years ago

Hey!

I want to thank you for this wonderful plugin! It's just a class.

But the error: "Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube-nocookie.com') does not match the recipient window's origin ('https://myapp.com')" interferes a lot. Although the video is loading and the parallax works fine, there is this bug in devTools. The same error is present on your demo pages.

Checked it on: Jarallax v1.12.8 and v1.12.5 Firefox 95 Chrome 97

I really like the plugin, but due to this error, I have to abandon yotube video and use vimeo and Self-Hosted Video (in my case, this is very inconvenient). From the reviews here and on other resources, I understand that I am not alone in this. Many users have this error.

Can you please tell me if something can be done about it? Do you plan to do something, or is it not possible?

Many thanks.

abvas commented 2 years ago

Just noticed that often I get this same error with vimeo-video:

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://player.vimeo.com') does not match the recipient window's origin ('https://myapp.com')

So this is not only a youtube video problem.

nk-o commented 2 years ago

Duplicate of https://github.com/nk-o/jarallax/issues/120

There is an assumption why this is happening, which you can read on the issue above. But I don't have a solution.