Fix XSS: Stenghten CSP rules on static file uploads (#4629)

This commit is contained in:
Nicolas Dorier
2023-02-13 23:04:15 +09:00
committed by GitHub
parent b5abcd5ae5
commit dffa6accb0

View File

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