mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 17:41:03 +01:00
Fix reporting of csp-blocked resources in logger
Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/552#issuecomment-561888900 Regression from: - https://github.com/gorhill/uBlock/commit/7971b223855d
This commit is contained in:
parent
953141f322
commit
d90c8486aa
1 changed files with 1 additions and 1 deletions
|
@ -1489,7 +1489,7 @@ const logCSPViolations = function(pageStore, request) {
|
|||
µb.staticNetFilteringEngine.matchAndFetchData(fctxt, 'csp');
|
||||
for ( const directive of staticDirectives ) {
|
||||
if ( directive.result !== 1 ) { continue; }
|
||||
cspData.set(directive.data, directive.logData());
|
||||
cspData.set(directive.getData('csp'), directive.logData());
|
||||
}
|
||||
|
||||
fctxt.type = 'inline-script';
|
||||
|
|
Loading…
Reference in a new issue