If you use Nodejs, NPM can setup proxy globally, but you cannot set a global proxy for your application.
I did a log of research, i found different solutions: (if your corp proxy request username and password to login, then please go to the end of this post)
you can try
1. global tunnel, which is here: https://www.npmjs.com/package/global-tunnel. However, this is very basic proxy, it doesn't accept username and password. but this is a kind of global proxy, this will apply this proxy to all http requests.
2. tunnel, which is here https://www.npmjs.com/package/tunnel . this is better, but does not support username and password neither. this is not global, you need to put this proxy into each http request.
3. http, you also can do this directly to http:
4. request with proxy:
this solution support proxy auth.
note: "domain\yourusername:yourpassword" this need to be url encoded. you can use this to encode it: