From e5632a7582a0531dca22622c88e5a11d5e838d4c Mon Sep 17 00:00:00 2001 From: Jocelyn Wang Date: Sun, 15 Oct 2023 12:31:26 -0400 Subject: [PATCH 1/2] permission header(issue-#428) --- src/background/protection/listeners-chrome.js | 1 + src/data/headers.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/background/protection/listeners-chrome.js b/src/background/protection/listeners-chrome.js index 6fa7aed..0773b14 100644 --- a/src/background/protection/listeners-chrome.js +++ b/src/background/protection/listeners-chrome.js @@ -44,6 +44,7 @@ function enableListeners(callbacks) { FILTER, CHROME_RESPONSE_SPEC ); + console.log(onHeadersReceived) chrome.webNavigation.onBeforeNavigate.addListener(onBeforeNavigate, FILTER); chrome.webNavigation.onCommitted.addListener(onCommitted, FILTER); } diff --git a/src/data/headers.js b/src/data/headers.js index 590e4a4..45f3ee9 100644 --- a/src/data/headers.js +++ b/src/data/headers.js @@ -19,4 +19,8 @@ export const headers = { name: "DNT", value: "1", }, + "Disable-Topics": { + name: 'permissions-policy', + value: 'interest-cohort=()' + } }; From 8584d513495e65965a4ceb6768a3605ad291ae87 Mon Sep 17 00:00:00 2001 From: Jocelyn Wang Date: Mon, 16 Oct 2023 19:11:44 -0400 Subject: [PATCH 2/2] clear consolelog (issue-#428) --- src/background/protection/listeners-chrome.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/background/protection/listeners-chrome.js b/src/background/protection/listeners-chrome.js index 0773b14..6fa7aed 100644 --- a/src/background/protection/listeners-chrome.js +++ b/src/background/protection/listeners-chrome.js @@ -44,7 +44,6 @@ function enableListeners(callbacks) { FILTER, CHROME_RESPONSE_SPEC ); - console.log(onHeadersReceived) chrome.webNavigation.onBeforeNavigate.addListener(onBeforeNavigate, FILTER); chrome.webNavigation.onCommitted.addListener(onCommitted, FILTER); }