pupunzi / jquery.mb.YTPlayer

use a custom yutube player for a video as background on jQuery framework
https://pupunzi.com/mb.components/mb.YTPlayer/demo/demo.html
1.34k stars 427 forks source link

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 2 years ago

J0onathan commented 2 years ago

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 commented 1 year ago

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