sampotts / plyr

A simple HTML5, YouTube and Vimeo player
https://plyr.io
MIT License
26.38k stars 2.92k forks source link

Set crossorigin on youtube iframe #1673

Open stephane-r opened 4 years ago

stephane-r commented 4 years ago

Hi guys,

I try to use your Plyr using Youtube Iframe content, but i've an crossorigin error. How i can add this parameter for iframe ?

I've try with this :

<div class="plyr__video-embedd" data-plyr data-plyr-provider="youtube" data-plyr-embed-id="WSM8GcShChk"></div>

Environment

Console errors (if any)

Access to XMLHttpRequest at 'https://googleads.g.doubleclick.net/pagead/id' from origin 'https://www.youtube.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Thank you !

blockmonkey commented 3 years ago

@stephane-r did you ever figure this out?