Proxies in Node.js.

Node does not read a proxy from the environment on its own. You hand one to the HTTP client: a ProxyAgent for fetch, or an agent for axios.

Last checked
Reading time
2 min
Networks
ResidentialDatacenter

05FAQ

Questions people ask.

Not covered here? Write to support@fullstackproxy.com and a person will reply: usually within an hour, sometimes up to 24 hours.

Does Node.js fetch use HTTP_PROXY automatically?

Not by default. Pass a proxy agent to each request as shown here. Very recent Node versions can read the proxy variables when you opt in, but an explicit agent works on every version and is easier to reason about.

Paste the gateway into your tool and you are done.