@using Microsoft.AspNetCore.Routing @using BTCPayServer.Plugins.LSP @model BTCPayServer.Plugins.LSP.LSPViewModel @inject ContentSecurityPolicies contentSecurityPolicies @inject IScopeProvider ScopeProvider @using BTCPayServer.Security @using NBitcoin @using BTCPayServer.Abstractions.Contracts @{ var storeId = ScopeProvider.GetCurrentStoreId(); var nonce = RandomUtils.GetUInt256().ToString().Substring(0, 32); contentSecurityPolicies.Add("script-src", $"'nonce-{nonce}'"); contentSecurityPolicies.AllowUnsafeHashes(); Layout = "_LayoutSimple"; }