ionic-cli: Proxies defined in ionic.project do not work behind a corporate proxy with authentication
My situation is simple and I presume very common.
I work in a company and as always there is a proxy. So I have to configure my laptop and all my frameworks, apps, etc. like npm, git, … in order to make them pass that proxy.
Everything works except one thing : the proxy feature of ionic serve.
Proxy configuration is good inside ionic.project
because I can see via chrome dev tools the url is good. I receive that kind of error : “Error: connect ETIMEDOUT”.
If I do a curl …
command on ionic server with that kind of url for instance http://localhost:8100/api…
, I receive an html error page from my corporate proxy.
My guess is that ionic’s proxy is not using any credentials defined via PROXY, http_proxy, … and other environment variables. Other ionic commands like ionic start …
works well but not this one.
My proxy require a login/pwd.
I’m using ionic 1.1.1.
The only solution I found is to use tethering on my mobile in order to not be on a network protected by a proxy. It works because my backend is accessible from internet. But this not a good solution.
Any hint or solution ?
Thanks a lot.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 23 (4 by maintainers)
While the https://github.com/form-data/form-data project does not accept my PR. The only solution is to change the repository to https://github.com/SamuelKlein/form-data. I do not have Windows system to test. Example in linux (root-user):
I replaced the form-data in C:\Users\me\AppData\Roaming\npm\node_modules\form-data with the one recommended (above) and also added it in my local project folder as well C:\Users\me\Downloads\myapp\node_modules\form-data yet the problem still persists. Any ideas why?