cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

change application domain from localhost

GianVal
15-Moonstone

change application domain from localhost

Hello, due to CORS policy restrictions I would like to change where vuforia studio is executed in the browser from "localhost:3000" to "user.companydomain.local:3000".

how to do that?

1 ACCEPTED SOLUTION

Accepted Solutions

Seems that by default Vuforia Studio only listens on localhost / 127.0.0.1 interface.

The behaviour is defined in 'AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\dist\server\index.js' file on line 128

 

var listenInterface = args.listen || process.env.LISTEN_ON || 'localhost';

 

So you can just add a 'LISTEN_ON' environment variable (preferred) or overwrite the variable in the .js file (it will probably be overwritten on the next Studio upgrade). Will probably have to restart Studio after setting the vartiable.

 

There is probably a third way - adding an argument to the Studio start command, but I never cared to find it.

 

Unbenannt.PNG

View solution in original post

1 REPLY 1

Seems that by default Vuforia Studio only listens on localhost / 127.0.0.1 interface.

The behaviour is defined in 'AppData\Roaming\VuforiaStudio\studio-download.vuforia.io\dist\server\index.js' file on line 128

 

var listenInterface = args.listen || process.env.LISTEN_ON || 'localhost';

 

So you can just add a 'LISTEN_ON' environment variable (preferred) or overwrite the variable in the .js file (it will probably be overwritten on the next Studio upgrade). Will probably have to restart Studio after setting the vartiable.

 

There is probably a third way - adding an argument to the Studio start command, but I never cared to find it.

 

Unbenannt.PNG

Top Tags