diff --git a/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml b/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml index b429318f7..172653ea5 100644 --- a/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml +++ b/BTCPayServer/Views/Shared/Crowdfund/Public/ViewCrowdfund.cshtml @@ -1,9 +1,15 @@ @model BTCPayServer.Plugins.Crowdfund.Models.ViewCrowdfundViewModel @using BTCPayServer.Plugins.Crowdfund.Models @inject BTCPayServer.Services.BTCPayServerEnvironment Env +@inject BTCPayServer.Security.ContentSecurityPolicies Csp @{ ViewData["Title"] = Model.Title; Layout = null; + if (!string.IsNullOrEmpty(Model.DisqusShortname)) + { + Csp.Add("script-src", $"https://{Model.DisqusShortname}.disqus.com"); + Csp.Add("script-src", "https://c.disquscdn.com"); + } }