-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
If NPM config's noproxy
is set, NO_PROXY
rules will apply incorrectly
#8287
Comments
For now I think it's best to just revert the dep update, and wait to see if https://github.com/Rob--W/proxy-from-env/issues/13 is implemented, in which case we can use that version. |
Famous last words |
The code for this is done in cypress-io/cypress#8295, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
After merging #7900, changes in
proxy-from-env
cause thenpm_config_noproxy
environment variable to be considered aboveNO_PROXY
. This is problematic because internally, we setNO_PROXY
to contain the user's originalNO_PROXY
settings, as well as things which should never be proxied likelocalhost
. The end result is bad behavior, like requests forlocalhost
being sent through the proxy.Desired behavior:
npm_config_noproxy
acts as a fallback forNO_PROXY
.Workaround
Ensure that NPM config's
noproxy
setting is empty when launching Cypress, so thatNO_PROXY
is preferred. This can be done via environment variables.For example (Linux/macOS):
Or on Windows, using
cross-env
:┆Issue is synchronized with this Jira Features by Unito
The text was updated successfully, but these errors were encountered: