Unity Webgl issue for upload file

Have used the upload API endpoint, and it works in the unity editor, but once build to webgl, the same API shows error 403 forbidden error. looking for a solution. thanks in advance

Hi There! :wave: Thanks for posting on the forum.

I do not have any Unity development experience - but I can certainly ask around internally to see if anyone else does.

I will say 403 errors are typically a permission issues or a missing CORS config in your app!

Alex, Box Developer Advocate :avocado:

Thank you for your quick reply,

Download API endpoint works good. Is cors not apply?


If that is the problem, how to setup cors in unity?