Fixed Chromium: Removes metadata only if LocalCDN is enabled (#563)

This commit is contained in:
nobody 2021-07-14 07:03:45 +02:00
parent 856e4132b3
commit afc10f860c
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
3 changed files with 4 additions and 2 deletions

View File

@ -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);
});

View File

@ -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 {

View File

@ -63,6 +63,7 @@
<li>Updated: highlight.js v11.0.1 -> v11.1.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/565">#565</a>)</li>
<li>Updated: socket.io v4.1.2 -> v4.1.3 (<a href="https://codeberg.org/nobody/LocalCDN/issues/566">#566</a>)</li>
<li>Fixed: Default charset of HTML filter (<a href="https://codeberg.org/nobody/LocalCDN/issues/567">#567</a>)</li>
<li>Fixed Chromium: Removes metadata only if LocalCDN is enabled (<a href="https://codeberg.org/nobody/LocalCDN/issues/563">#563</a>)</li>
<li><strong>Includes also the following changes, because the release of this version took a long time caused by a broken validation server of Mozilla (<a href="https://codeberg.org/nobody/LocalCDN/issues/490">More information</a>).</strong>
<ul>
<li>Ruleset generator for NoScript (<a href="https://codeberg.org/nobody/LocalCDN/issues/489">#489</a>)</li>