Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for no_proxy env variable #1693

merged 2 commits into from Aug 7, 2018


Copy link

commented Jul 24, 2018

This commit adds support for the no_proxy env variable (Issue #434 and on umbrella issue for 1.0.0). It looks like there's an open PR #565, however it has conflicts, adds an unnecessary dependency, and was created in 2016 and hasn't been merged yet. At the company where I work, we are behind a proxy and are having to work around this lack of functionality, and it seems like several people are in a similar situation, so it'd be nice to have this feature. 馃檪

Copy link

left a comment

@chancedickson can you add documentation for this to the README?

Otherwise, LGTM and I'll merge it

chancedickson added some commits Jul 24, 2018

Adding support for no_proxy env variable
* Adds support for the no_proxy environment variable commonly available
  with programs supporting the http_proxy/https_proxy environment
* Adds tests to test the no_proxy environment variable.
Adding documentation for the proxy env variables
* Adds documentation to for the supported, conventional
  http_proxy, https_proxy, and no_proxy environment variables.

This comment has been minimized.

Copy link
Contributor Author

commented Aug 7, 2018

@emilyemorehouse Added the documentation 馃檪

@emilyemorehouse emilyemorehouse merged commit 38de252 into axios:master Aug 7, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed

This comment has been minimized.

Copy link

commented Jun 27, 2019

I have a no_proxy entry in the pattern and typically this works for excluding all urls that are subdomains of However this specific implementation does not match the no_proxy against urls that are sub-sub-domains. I found that is not matched, and continues to proxy. It looks like this implementation was intentional, but seems like a bug from my perspective. Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can鈥檛 perform that action at this time.