vimeo-unity-sdk
vimeo-unity-sdk copied to clipboard
CORS error in WebGl build.
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.
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.
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
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.