mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
Fix XSS on uploaded files to the file storage (#4567)
This commit is contained in:
parent
438dcc4c6f
commit
3d576cd06b
@ -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…
Reference in New Issue
Block a user