vimeo / vimeo-unity-sdk

Easily stream your Vimeo videos into Unity or record and publish out to Vimeo.
MIT License
210 stars 48 forks source link

CORS error in WebGl build. #107

Open umresh opened 4 years ago

umresh commented 4 years ago

Hi, I'm building player for WebGL and when playing video I get CORS error when playing the video url under [play][progressive] in response Json. How do I solve this issue?

[EDIT] Tried AvPro Video too but getting the same error. I'm using Unity 2019.2.17f1.

iheartblob commented 4 years ago

Hi, I'm building player for WebGL and when playing video I get CORS error when playing the video url under [play][progressive] in response Json. How do I solve this issue?

[EDIT] Tried AvPro Video too but getting the same error. I'm using Unity 2019.2.17f1.

Hey Did you manage to get it working? It seems like everyone has this issue and hasn't figured out a way to fix it. Would be great if we could get this fixed and update this repo.

ghost commented 4 years ago

I chased Vimeo support.

Part of my message to them:

This appears to be a problem on Vimeo's side in relation to the server's CORS policy. [I may be wrong but] it would be out of control of the Vimeo-Unity-SDK client.

There are plenty of unclosed issues in the Vimeo-Unity-SDK relating to the issue I am facing: https://github.com/vimeo/vimeo-unity-sdk/issues?q=CORS

And this is Vimeo's official response:

Taylor T. (Vimeo Support) Aug 4, 2020, 5:36 PM EDT

Hi, Understood. We're aware of this issue, however we cannot provide any ETA for a potential fix or any changes. Our apologies for any inconvenience this causes you! 

Sincerely, Taylor T. Specialist, Vimeo Developer API + Apps

Wyvernius commented 4 years ago

Maybe, if you have control over the server that you're hosting your app from, you maybe can rewrite the headers to always return the missing headers.

This was also a problem i faced. Also Fiddler is a great program to know what happens and goes wrong with debugging WebGL builds with "outside" connections.