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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to force not to use proxy? #635

Closed
otakustay opened this issue Jan 6, 2017 · 2 comments · Fixed by #691 or javascript-indonesias/axios#4
Closed

Is there a way to force not to use proxy? #635

otakustay opened this issue Jan 6, 2017 · 2 comments · Fixed by #691 or javascript-indonesias/axios#4

Comments

@otakustay
Copy link

In my case I have a http_proxy env variable on my development computer which passes all traffic to my vpn, however this proxy would fail to work when hostname is localhost, therefore when I'm testing my application it always fails because I setup my server at localhost, I want a method to force axios receiving a none for proxy config, currently if proxy property is null or undefined it will use the http_proxy env

@vilinski
Copy link

vilinski commented Feb 6, 2017

there is already an open PR, which if merged solves your problem

vbfox added a commit to vbfox/axios that referenced this issue Feb 7, 2017
When the proxy field in configuration is === false all proxy processing is
disabled. This specifically disable the 'http_proxy' environment variable
handling.

Fixes axios#635
Related to axios#434
vbfox added a commit to vbfox/axios that referenced this issue Mar 20, 2017
When the proxy field in configuration is === false all proxy processing is
disabled. This specifically disable the 'http_proxy' environment variable
handling.

Fixes axios#635
Related to axios#434
vbfox added a commit to vbfox/axios that referenced this issue Mar 20, 2017
When the proxy field in configuration is === false all proxy processing is
disabled. This specifically disable the 'http_proxy' environment variable
handling.

Fixes axios#635
Related to axios#434
@rubennorte
Copy link
Member

Closing as duplicate of #434

vbfox added a commit to vbfox/axios that referenced this issue Apr 28, 2017
When the proxy field in configuration is === false all proxy processing is
disabled. This specifically disable the 'http_proxy' environment variable
handling.

Fixes axios#635
Related to axios#434
rubennorte pushed a commit that referenced this issue Aug 14, 2017
* Adding a way to disable all proxy processing

When the proxy field in configuration is === false all proxy processing is
disabled. This specifically disable the 'http_proxy' environment variable
handling.

Fixes #635
Related to #434

* Change readme wording

From review comment on PR (#691)
@axios axios locked and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants