I’m trying to use a loadScene puzzle for calling a gltf model from a database on another domain. But I’m getting a CORS error when I call gltf model. Those two domains are configured to work together already and there is no problem with that.
Can I add custom headers to loadScenes fetch requests?
I’m using VueJs by the way.
My code is:
sceneURL = initOptions.useCompAssets ? sceneURL + '.xz' : sceneURL; // sceneURL comes from REST api (file contains on another domain (REST API's domain))
            window.vergeApp.loadScene(sceneURL, function() {
                window.vergeApp.enableControls();
                window.vergeApp.run();
                if (v3d.PE) v3d.PE.updateAppInstance(window.vergeApp);
                if (v3d.PL) v3d.PL.init(window.vergeApp, initOptions);
                vue.runCode(window.vergeApp);