Raymond Hill 2024-07-10 10:09:59 -04:00
parent e3b71a5861
commit b98ef8141a
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 4 additions and 0 deletions

View File

@ -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;