Skip to content

Commit daab951

Browse files
committed
fix: Restrict host permissions and content script matches to HTTPS only
1 parent cb76fa6 commit daab951

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ chrome.webNavigation.onCompleted.addListener(
159159
// injectModules(details.tabId, "webNavigation.onCompleted"); // Commented out
160160
}
161161
},
162-
{ url: [{ schemes: ['http','https'] }] }
162+
{ url: [{ schemes: ['https'] }] }
163163
);
164164

165165
// 3) Message listener for updates, popup requests, AND scroll requests

manifest.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"webNavigation"
1010
],
1111
"host_permissions": [
12-
"http://*/*",
1312
"https://*/*"
1413
],
1514
"content_security_policy": {
@@ -37,7 +36,6 @@
3736
"content_scripts": [
3837
{
3938
"matches": [
40-
"http://*/*",
4139
"https://*/*"
4240
],
4341
"js": [

0 commit comments

Comments
 (0)