In PrestaShop I'm using a module which embeds a YouTube video like:
<iframe width="560" height="315" frameborder="0" iv_load_policy="3" fs="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" data-src="https://youtube.com/embed/VIDEO_ID?rel=0&controls=0&showinfo=0&modestbranding=1"></iframe>
Everything seems to work / the video is playing - but in the browser console I see the following error:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://youtube.com') does not match the recipient window's origin ('https://OUR_DOMAIN').
After I have spend a lot of time googling and reading through all similar issues here at SOO this issue is not about CORS or similar. Most people who report this issue claim it's due to how the YouTube video is loaded incl. params etc... I have tried multiple things - but I have not succeeded to remove this error. I hope you guys have a way to resolve this here in 2022.