Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute 'postMessage' on 'DOMWindow':The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://www.mysite.fr'). #491

Open
J0onathan opened this issue Oct 10, 2022 · 1 comment

Comments

@J0onathan
Copy link

J0onathan commented Oct 10, 2022

Hello all.
After loading the video with jquery.mb.YTPlayer I receive this error message. With it, I also got :
Access to XMLHttpRequest at 'https://googleads.g.doubleclick.net/pagead/viewthroughconversion/962985656/?backend=innertube&cname=56&cver=20221005&foc_id=t2fHJDmqGo63N7nAOt19nA&label=followon_view&ptype=no_rmkt&random=118337904&cv_attributed=0' (redirected from 'https://www.youtube.com/pagead/viewthroughconversion/962985656/?backend=innertube&cname=56&cver=20221005&foc_id=t2fHJDmqGo63N7nAOt19nA&label=followon_view&ptype=no_rmkt&random=118337904') from origin 'https://www.youtube.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Even if I add the option useNoCookie.
Any help please. Thanks

@lKrayola
Copy link

lKrayola commented Apr 6, 2023

Ive got the same:

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://mysite.vercel.app').

But only in chrome & edge, on firefox it works fine

Edit: Upon further testing I got the error randomly happening on chrome & edge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants