Skip to content

Commit 329ede5

Browse files
committed
Fix firefox pref to ensure cert check traffic isn't proxied
1 parent 3f6368b commit 329ede5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interceptors/fresh-firefox.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ export class FreshFirefox implements Interceptor {
5353
browser: 'firefox',
5454
profile: this.firefoxProfilePath,
5555
proxy: proxyPort ? `127.0.0.1:${proxyPort}` : undefined,
56-
// Don't intercept our cert testing requests
57-
noProxy: proxyPort ? certCheckServer.host : undefined,
5856
prefs: _.assign(
5957
existingPrefs,
6058
proxyPort ? {
6159
// By default browser-launcher only configures HTTP, so we need to add HTTPS:
6260
'network.proxy.ssl': '"127.0.0.1"',
6361
'network.proxy.ssl_port': proxyPort,
6462

65-
// The above browser-launcher proxy/noProxy settings should do this, but don't seem to
63+
// The above browser-launcher proxy settings should do this, but don't seem to
6664
// reliably overwrite existing values, so we set them explicitly.
6765
'network.proxy.http': '"127.0.0.1"',
6866
'network.proxy.http_port': proxyPort,
69-
'network.proxy.http.network.proxy.http.no_proxies_on': "\"" + certCheckServer.host + "\"",
67+
// Don't intercept our cert testing requests
68+
'network.proxy.no_proxies_on': "\"" + certCheckServer.host + "\"",
69+
'network.proxy.http.no_proxies_on': "\"" + certCheckServer.host + "\"",
7070

7171
// Send localhost reqs via the proxy too
7272
'network.proxy.allow_hijacking_localhost': true,

0 commit comments

Comments
 (0)