Autodesk AR/VR Toolkit Request not working in Unity3d WEBGL?

96 views Asked by At

i get an error in Unity3d WEBGL when i want to request this point: GET /modelderivative/v2/arkit/{urn}/scenes/{scene_id}

No troubles accessing this point via https://reqbin.com/ No troubles accessing this point in the Unity-Editor.

WEBGL Error: Access-Control-Allow-Origin Missing Header

Is Autodesk blocking Unity WEBGL? I want to make a custom web-viewer with Unity3d.

Greets

1

There are 1 answers

0
Petr Broz On

As the guys already said in the comments, this is a security measure imposed by CORS.

Btw. here's a shameless plug: I'm the author of the forge-convert-utils library that can be used to convert Forge models into glTF 2.0. With it you could host the glTF assets anywhere you want (and have the server use any CORS headers that are needed), and you can load them into your Unity app using any of the glTF loaders such as glTFast or UnityGLTF.