Fix XSS on uploaded files to the file storage (#4567)

This commit is contained in:
Nicolas Dorier 2023-01-26 19:12:06 +09:00 committed by GitHub
parent 438dcc4c6f
commit 3d576cd06b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,7 @@ namespace BTCPayServer.Storage
{
context.Context.Response.Headers["Content-Disposition"] = "attachment";
}
context.Context.Response.Headers["Content-Security-Policy"] = "script-src 'self'";
};
}
}