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

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;