mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Fix XSS on uploaded files to the file storage (#4567)
This commit is contained in:
@@ -75,6 +75,7 @@ namespace BTCPayServer.Storage
|
||||
{
|
||||
context.Context.Response.Headers["Content-Disposition"] = "attachment";
|
||||
}
|
||||
context.Context.Response.Headers["Content-Security-Policy"] = "script-src 'self'";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user