Skip to content

Commit

Permalink
Ensure Chrome proxies localhost requests
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed May 10, 2019
1 parent 75a3953 commit d817661
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/interceptors/fresh-chrome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ export class FreshChrome implements Interceptor {
// Don't intercept our warning hiding requests
noProxy: hideWarningServer.host,
options: [
`--ignore-certificate-errors-spki-list=${spkiFingerprint}`
// Trust our CA certificate's fingerprint:
`--ignore-certificate-errors-spki-list=${spkiFingerprint}`,
// 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>'`
]
}, this.config.configPath);

Expand Down

0 comments on commit d817661

Please sign in to comment.