1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00
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;