Is it possible to use environment variables for calling modules from server?

I’m guessing that the javascript under /app/bundle/programs/web.browser throws a GET method to server based on the URL entered in the browser after it is loaded by the browser.

Is it possible to use the environment variable set on the server side instead of the one entered in the browser as the URL when throwing the GET method?