Skip to content

Commit bc9b8a1

Browse files
committedDec 16, 2020
Enable broad no-csp-reports rule only in Firefox
Related commit: - 7d90f97
1 parent 095924a commit bc9b8a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/js/start.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ const createDefaultProps = function() {
233233
].join('\n'),
234234
'urlFilteringString': '',
235235
'hostnameSwitchesString': [
236-
'no-csp-reports: * true',
237236
'no-large-media: behind-the-scene false',
238237
].join('\n'),
239238
'lastRestoreFile': '',
@@ -243,6 +242,10 @@ const createDefaultProps = function() {
243242
'netWhitelist': µb.netWhitelistDefault,
244243
'version': '0.0.0.0'
245244
};
245+
// https://github.com/LiCybora/NanoDefenderFirefox/issues/196
246+
if ( vAPI.webextFlavor.soup.has('firefox') ) {
247+
fetchableProps.hostnameSwitchesString += '\nno-csp-reports: * true';
248+
}
246249
toFetch(µb.localSettings, fetchableProps);
247250
toFetch(µb.userSettings, fetchableProps);
248251
toFetch(µb.restoreBackupSettings, fetchableProps);

0 commit comments

Comments
 (0)
Please sign in to comment.