Skip to content

Commit

Permalink
Enable broad no-csp-reports rule only in Firefox
Browse files Browse the repository at this point in the history
Related commit:
- 7d90f97
  • Loading branch information
gorhill committed Dec 16, 2020
1 parent 095924a commit bc9b8a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ const createDefaultProps = function() {
].join('\n'),
'urlFilteringString': '',
'hostnameSwitchesString': [
'no-csp-reports: * true',
'no-large-media: behind-the-scene false',
].join('\n'),
'lastRestoreFile': '',
Expand All @@ -243,6 +242,10 @@ const createDefaultProps = function() {
'netWhitelist': µb.netWhitelistDefault,
'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.userSettings, fetchableProps);
toFetch(µb.restoreBackupSettings, fetchableProps);
Expand Down

0 comments on commit bc9b8a1

Please sign in to comment.