Skip to main content

Unity Webgl issue for upload file

  • July 27, 2023
  • 2 replies
  • 298 views

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

2 replies

smartoneinok Box
Forum|alt.badge.img
  • Senior Developer Advocate
  • 181 replies
  • July 27, 2023

Hi There! 👋 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!

Thanks,
Alex, Box Developer Advocate 🥑


  • Author
  • New Participant
  • 1 reply
  • July 28, 2023

Thank you for your quick reply,

Download API endpoint works good. Is cors not apply?

Or

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