简体   繁体   中英

Unity Vimeo SDK - problem with CORS and WebGL

I am trying to load a video from Vimeo into player, but I am running into CORS problems when building to WebGL.

That's the error:

"Access to video at 'https‍://vimeo-...' from origin 'http‍://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource"

*works fine before build...

Unity version: 2019.1.6f1

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM