mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
parent
2f6ca07bba
commit
cca81c4006
@ -47,7 +47,10 @@
|
||||
scope.init = function(){
|
||||
function listener(details){
|
||||
const headers = details.responseHeaders;
|
||||
if (settings.get("blockDataURLs", new URL(details.url))){
|
||||
if (
|
||||
details.statusCode !== 304 &&
|
||||
settings.get("blockDataURLs", new URL(details.url))
|
||||
){
|
||||
const cspMatch = (blockBlob? "": "blob: ") + "filesystem: *";
|
||||
logging.verbose("Adding CSP header to", details);
|
||||
setHeader(headers, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user