diff --git a/core/main.js b/core/main.js index 24441f90..e62426ee 100644 --- a/core/main.js +++ b/core/main.js @@ -77,6 +77,7 @@ main._initializeSettings = function () { interceptor.allowedDomainsGoogleFonts = items.allowedDomainsGoogleFonts || {}; interceptor.blockMissing = items.blockMissing === undefined ? false : items.blockMissing; interceptor.blockGoogleFonts = items.blockGoogleFonts === undefined ? true : items.blockGoogleFonts; + requestAnalyzer.allowlistedDomains = items.allowlistedDomains || {}; storageManager.type.set(items); }); diff --git a/core/request-sanitizer.js b/core/request-sanitizer.js index 803e6f91..f94ec841 100644 --- a/core/request-sanitizer.js +++ b/core/request-sanitizer.js @@ -62,8 +62,8 @@ requestSanitizer._stripMetadata = function (requestDetails) { let sensitiveHeaders, initiatorDomain, allowlistedDomains; sensitiveHeaders = [Header.COOKIE, Header.ORIGIN, Header.REFERER]; - initiatorDomain = helpers.extractDomainFromUrl(requestDetails.originUrl, true); - allowlistedDomains = stateManager._domainIsListed(initiatorDomain); + initiatorDomain = helpers.extractDomainFromUrl(requestDetails.initiator, true); + allowlistedDomains = helpers.checkAllowlisted(initiatorDomain); if (allowlistedDomains) { return { diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 414e103b..fe688426 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -63,6 +63,7 @@