Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions firefox/src/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Feature {

function proxify(config, onlyContainers) {
return async function (e) {
if (onlyContainers && e.cookieStoreId == 'firefox-default')
if ((onlyContainers && e.cookieStoreId == 'firefox-default') || e.requestHeaders.some(header => header.name === "X-Do-Not-Proxy" && header.value === "on"))
return { type: "direct" };
const host = await config.get("burpProxyHost")
const port = await config.get("burpProxyPort")
Expand All @@ -54,7 +54,7 @@ class UseBurpProxyAll extends Feature {
super.start()
if (!await this.config.get("enabled")) return

browser.proxy.onRequest.addListener(this.proxy, { urls: ["<all_urls>"] })
browser.proxy.onRequest.addListener(this.proxy, { urls: ["<all_urls>"] },["requestHeaders"])

}

Expand All @@ -75,7 +75,7 @@ class UseBurpProxyContainers extends Feature {
super.start()
if (!await this.config.get("enabled")) return

browser.proxy.onRequest.addListener(this.proxy, { urls: ["<all_urls>"] })
browser.proxy.onRequest.addListener(this.proxy, { urls: ["<all_urls>"] },["requestHeaders"])
}

stop() {
Expand Down Expand Up @@ -295,4 +295,4 @@ class ContentScriptFeatures extends FeaturesGroup {
]
super(config, features)
}
}
}