mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-09 12:22:33 +01:00
Fix CSP injection in non-document resources
Related feedback: https://github.com/uBlockOrigin/uBlock-issues/issues/229#issuecomment-2220354261 https://old.reddit.com/r/uBlockOrigin/comments/1dz6du7/ Regression from: https://github.com/gorhill/uBlock/commit/7c3e060c01
This commit is contained in:
parent
e3b71a5861
commit
b98ef8141a
@ -945,6 +945,10 @@ const bodyFilterer = (( ) => {
|
||||
/******************************************************************************/
|
||||
|
||||
const injectCSP = function(fctxt, pageStore, responseHeaders) {
|
||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/229#issuecomment-2220354261
|
||||
// Inject CSP in document resource only
|
||||
if ( fctxt.isDocument() === false ) { return; }
|
||||
|
||||
const cspSubsets = [];
|
||||
const requestType = fctxt.type;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user