mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Harden file type inputs (#4635)
This commit is contained in:
@@ -76,6 +76,7 @@ namespace BTCPayServer.Storage
|
||||
context.Context.Response.Headers["Content-Disposition"] = "attachment";
|
||||
}
|
||||
context.Context.Response.Headers["Content-Security-Policy"] = "script-src ;";
|
||||
context.Context.Response.Headers["X-Content-Type-Options"] = "nosniff";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user