Skip to content

Commit

Permalink
Fix XSS: Stenghten CSP rules on static file uploads (#4629)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Feb 13, 2023
1 parent b5abcd5 commit dffa6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BTCPayServer/Storage/StorageExtensions.cs
Expand Up @@ -75,7 +75,7 @@ private static Action<StaticFileResponseContext> HandleStaticFileResponse()
{
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 ;";
};
}
}
Expand Down

0 comments on commit dffa6ac

Please sign in to comment.