mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +01:00
Fix XSS on uploaded files to the file storage (#4567)
This commit is contained in:
parent
438dcc4c6f
commit
3d576cd06b
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ namespace BTCPayServer.Storage
|
|||
{
|
||||
context.Context.Response.Headers["Content-Disposition"] = "attachment";
|
||||
}
|
||||
context.Context.Response.Headers["Content-Security-Policy"] = "script-src 'self'";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue