Skip to content

Commit

Permalink
Actually ensure Chrome proxies localhost requests (oops)
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed May 10, 2019
1 parent f5b71bf commit 9fffdc7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/interceptors/fresh-chrome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ export class FreshChrome implements Interceptor {
// and might find a new install.
browser: (await getChromeBrowserName(this.config)) || 'chrome',
proxy: `https://localhost:${proxyPort}`,
// Don't intercept our warning hiding requests
noProxy: hideWarningServer.host,
options: [
// Trust our CA certificate's fingerprint:
`--ignore-certificate-errors-spki-list=${spkiFingerprint}`,
noProxy: [
// Don't intercept our warning hiding requests
hideWarningServer.host,
// Force even localhost requests to go through the proxy
// See https://bugs.chromium.org/p/chromium/issues/detail?id=899126#c17
`--proxy-bypass-list='<-loopback>'`
'<-loopback>'
],
options: [
// Trust our CA certificate's fingerprint:
`--ignore-certificate-errors-spki-list=${spkiFingerprint}`
]
}, this.config.configPath);

Expand Down

0 comments on commit 9fffdc7

Please sign in to comment.