Fixed Chromium: Removes metadata only if LocalCDN is enabled (#563)
This commit is contained in:
parent
856e4132b3
commit
afc10f860c
|
@ -77,6 +77,7 @@ main._initializeSettings = function () {
|
||||||
interceptor.allowedDomainsGoogleFonts = items.allowedDomainsGoogleFonts || {};
|
interceptor.allowedDomainsGoogleFonts = items.allowedDomainsGoogleFonts || {};
|
||||||
interceptor.blockMissing = items.blockMissing === undefined ? false : items.blockMissing;
|
interceptor.blockMissing = items.blockMissing === undefined ? false : items.blockMissing;
|
||||||
interceptor.blockGoogleFonts = items.blockGoogleFonts === undefined ? true : items.blockGoogleFonts;
|
interceptor.blockGoogleFonts = items.blockGoogleFonts === undefined ? true : items.blockGoogleFonts;
|
||||||
|
requestAnalyzer.allowlistedDomains = items.allowlistedDomains || {};
|
||||||
|
|
||||||
storageManager.type.set(items);
|
storageManager.type.set(items);
|
||||||
});
|
});
|
||||||
|
|
|
@ -62,8 +62,8 @@ requestSanitizer._stripMetadata = function (requestDetails) {
|
||||||
let sensitiveHeaders, initiatorDomain, allowlistedDomains;
|
let sensitiveHeaders, initiatorDomain, allowlistedDomains;
|
||||||
|
|
||||||
sensitiveHeaders = [Header.COOKIE, Header.ORIGIN, Header.REFERER];
|
sensitiveHeaders = [Header.COOKIE, Header.ORIGIN, Header.REFERER];
|
||||||
initiatorDomain = helpers.extractDomainFromUrl(requestDetails.originUrl, true);
|
initiatorDomain = helpers.extractDomainFromUrl(requestDetails.initiator, true);
|
||||||
allowlistedDomains = stateManager._domainIsListed(initiatorDomain);
|
allowlistedDomains = helpers.checkAllowlisted(initiatorDomain);
|
||||||
|
|
||||||
if (allowlistedDomains) {
|
if (allowlistedDomains) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -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: 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>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: 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>
|
<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>
|
<ul>
|
||||||
<li>Ruleset generator for NoScript (<a href="https://codeberg.org/nobody/LocalCDN/issues/489">#489</a>)</li>
|
<li>Ruleset generator for NoScript (<a href="https://codeberg.org/nobody/LocalCDN/issues/489">#489</a>)</li>
|
||||||
|
|
Loading…
Reference in New Issue