mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
parent
2f6ca07bba
commit
cca81c4006
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue