We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de5834 commit ba2b685Copy full SHA for ba2b685
src/js/heuristicblocking.js
@@ -124,11 +124,9 @@ HeuristicBlocker.prototype = {
124
let tab_origin = self.tabOrigins[details.tabId];
125
126
// return early if tab origin is a localhost address
127
- ['127.0', 'localhost', 'http://localhost'].forEach((localhost) => {
128
- if (tab_origin.startsWith(localhost)) {
129
- return {};
130
- }
131
- });
+ if (window.isPrivateDomain(tab_origin)) {
+ return {};
+ }
132
133
// ignore first-party requests
134
if (!tab_origin || !utils.isThirdPartyDomain(request_origin, tab_origin)) {
0 commit comments