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

CORS Blocks videos #594

Open
audas opened this issue Dec 1, 2021 · 0 comments
Open

CORS Blocks videos #594

audas opened this issue Dec 1, 2021 · 0 comments

Comments

@audas
Copy link

audas commented Dec 1, 2021

AS the title suggests - can not get any videos to play, only sound.

I have tried setting headers to allow access, useCredentials etc, but nothing is working.

Has anyone got this working since the youtube policy change ? If so can we see a working example?

The examples provided do not work.

Someone mentioned we need to set the origin on the iframe ?

Edit:

I think this has something to do with the new CORS policies from Youtube which the videojs.js team have tried to deal with in regards to their withCredentials and crossorigin.

I have tried

Setting allow access origin headers. using embed urls, setting all variations of withCredentials and cross origins, embedding as video element, updating via videojs(element), setting the player options as an object.

Have tested all variations of http:. https:, //www,youtube, //youtube, on websites with http and https.

This has clearly been an ongoing issue for many people for a long time with the same problem not being answered.

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

1 participant