From d817661d1a160c7c9573086876c7fa0a14b7efb5 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Fri, 10 May 2019 19:20:23 +0200 Subject: [PATCH] Ensure Chrome proxies localhost requests --- src/interceptors/fresh-chrome.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/interceptors/fresh-chrome.ts b/src/interceptors/fresh-chrome.ts index dff35013..b894aef7 100644 --- a/src/interceptors/fresh-chrome.ts +++ b/src/interceptors/fresh-chrome.ts @@ -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);