mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +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
@ -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 New Issue
Block a user