Enable broad no-csp-reports rule only in Firefox

Related commit:
- 7d90f97aa1
This commit is contained in:
Raymond Hill 2020-12-16 07:02:55 -05:00
parent 095924aa50
commit bc9b8a1330
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 4 additions and 1 deletions

View File

@ -233,7 +233,6 @@ const createDefaultProps = function() {
].join('\n'), ].join('\n'),
'urlFilteringString': '', 'urlFilteringString': '',
'hostnameSwitchesString': [ 'hostnameSwitchesString': [
'no-csp-reports: * true',
'no-large-media: behind-the-scene false', 'no-large-media: behind-the-scene false',
].join('\n'), ].join('\n'),
'lastRestoreFile': '', 'lastRestoreFile': '',
@ -243,6 +242,10 @@ const createDefaultProps = function() {
'netWhitelist': µb.netWhitelistDefault, 'netWhitelist': µb.netWhitelistDefault,
'version': '0.0.0.0' 'version': '0.0.0.0'
}; };
// https://github.com/LiCybora/NanoDefenderFirefox/issues/196
if ( vAPI.webextFlavor.soup.has('firefox') ) {
fetchableProps.hostnameSwitchesString += '\nno-csp-reports: * true';
}
toFetch(µb.localSettings, fetchableProps); toFetch(µb.localSettings, fetchableProps);
toFetch(µb.userSettings, fetchableProps); toFetch(µb.userSettings, fetchableProps);
toFetch(µb.restoreBackupSettings, fetchableProps); toFetch(µb.restoreBackupSettings, fetchableProps);