Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests not being forwarded via corporate proxy #5876

Closed
bengrah-miller opened this issue Aug 29, 2024 · 0 comments
Closed

Requests not being forwarded via corporate proxy #5876

bengrah-miller opened this issue Aug 29, 2024 · 0 comments
Labels

Comments

@bengrah-miller
Copy link

I've put together an ExpressJS proxy server, that uses http-proxy-middleware - the user will make a request to our proxy server, which will then make a subsequent request to the destination that we want to go to. The proxy server works fine, but only when I'm working from home, but does not work when I'm in the office.

We have a corporate proxy that is set up on all workstations, and my installed Node instance has both https-proxy and proxy config settings set up as you can see below:

PS C:\MobileDevTesting\express-server2> npm config list
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
; "global" config from C:\Program Files\nodejs\etc\npmrc

; https-proxy = "http://prox.org.com:9090/" ; overridden by user
; proxy = "http://prox.org.com:9090/" ; overridden by user 

When I use the proxy server from home, works great - no issues, but does not work in the office. My colleague has confirmed that the request does not appear to be going through our proxy (http://prox.org.com:9090), and is just trying to go directly to the internet. This request is then blocked by our firewall.

I had assumed that because we had set up the proxy and https-proxy settings in Node, that that would handle this itself but appears not to be the case. We cannot also whitelist the address of the request as it changes regularly.

Is this the correct behaviour from Node/ExpressJS? Is there a setting I can use to force going through the corporate proxy that I've not used yet? I may also be barking up the wrong tree as well, but any guidance/help you could give would be appreciated.

@expressjs expressjs locked and limited conversation to collaborators Aug 29, 2024
@wesleytodd wesleytodd converted this issue into discussion #5877 Aug 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

1 participant