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
puppeteer 1.11.0 ignore --proxy-server for localhost URLs #3711
Comments
Additional this option?
https://peter.sh/experiments/chromium-command-line-switches/#proxy-bypass-list |
@HassyMasa The issue is that localhost is ignored with I'm not trying to bypass the proxy for localhost. Didn't know this option, tried |
@panthony I'm sorry I can't be of any help. |
@panthony If you're on Chrome 72, you may be hitting the problem discussed in this Cypress bug report. Apparently |
@sethfowler It does! Awesome, thanks for your help 🙇 @aslushnikov Hi, do you think this option could be added by default in puppeteer as, I think, working with localhost is a common use case? Or maybe add something somewhere, maybe in |
Since Chrome 72 localhost is bypassed by default. Oftentimes this is not a default behavior in testing scenarios. Fixes puppeteer#3711.
@panthony @sethfowler awesome, thanks for the investigation!
I've added this option to the |
Since Chrome 72 localhost is bypassed by default. Oftentimes this is not a default behavior in testing scenarios. Fixes #3711.
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
--proxy-server=localhost:8081
goto
with an URL on localhostThe request will bypass the configured proxy although it worked up until
v1.10.0
.If you use an url on some domain (ex: google.com) then the proxy will be used.
The
setupServer
was copied frompuppeteer
tests, I only added this:For my own tests to verify that the request goes through the proxy I started which looks like:
What is the expected result?
What happens instead?
The text was updated successfully, but these errors were encountered: