diff --git a/BTCPayServer/Storage/StorageExtensions.cs b/BTCPayServer/Storage/StorageExtensions.cs index bfc8b14360..cb91b93c2d 100644 --- a/BTCPayServer/Storage/StorageExtensions.cs +++ b/BTCPayServer/Storage/StorageExtensions.cs @@ -75,6 +75,7 @@ private static Action HandleStaticFileResponse() { context.Context.Response.Headers["Content-Disposition"] = "attachment"; } + context.Context.Response.Headers["Content-Security-Policy"] = "script-src 'self'"; }; } }