Skip to content

Commit

Permalink
chore(examples): exclude localhost from proxy bypass list (#3742)
Browse files Browse the repository at this point in the history
Since Chrome 72 localhost is bypassed by default. Oftentimes
this is not a default behavior in testing scenarios.

Fixes #3711.
  • Loading branch information
aslushnikov committed Jan 10, 2019
1 parent 82bef70 commit 4c48b77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/proxy.js
Expand Up @@ -23,7 +23,11 @@ const puppeteer = require('puppeteer');
// Launch chromium using a proxy server on port 9876.
// More on proxying:
// https://www.chromium.org/developers/design-documents/network-settings
args: [ '--proxy-server=127.0.0.1:9876' ]
args: [
'--proxy-server=127.0.0.1:9876',
// Use proxy for localhost URLs
'--proxy-bypass-list=<-loopback>',
]
});
const page = await browser.newPage();
await page.goto('https://google.com');
Expand Down

0 comments on commit 4c48b77

Please sign in to comment.