Skip to content

Commit d817661

Browse files
committed
Ensure Chrome proxies localhost requests
1 parent 75a3953 commit d817661

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/interceptors/fresh-chrome.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ export class FreshChrome implements Interceptor {
5656
// Don't intercept our warning hiding requests
5757
noProxy: hideWarningServer.host,
5858
options: [
59-
`--ignore-certificate-errors-spki-list=${spkiFingerprint}`
59+
// Trust our CA certificate's fingerprint:
60+
`--ignore-certificate-errors-spki-list=${spkiFingerprint}`,
61+
// Force even localhost requests to go through the proxy
62+
// See https://bugs.chromium.org/p/chromium/issues/detail?id=899126#c17
63+
`--proxy-bypass-list='<-loopback>'`
6064
]
6165
}, this.config.configPath);
6266

0 commit comments

Comments
 (0)