diff --git a/BTCPayServer.Tests/BTCPayServerTester.cs b/BTCPayServer.Tests/BTCPayServerTester.cs index 949ac53d34..d6d7e51ff1 100644 --- a/BTCPayServer.Tests/BTCPayServerTester.cs +++ b/BTCPayServer.Tests/BTCPayServerTester.cs @@ -134,7 +134,7 @@ public async Task StartAsync() config.AppendLine($"torrcfile={TestUtils.GetTestDataFullPath("Tor/torrc")}"); config.AppendLine($"socksendpoint={SocksEndpoint}"); config.AppendLine($"debuglog=debug.log"); - + config.AppendLine($"nocsp={NoCSP.ToString().ToLowerInvariant()}"); if (!string.IsNullOrEmpty(SSHPassword) && string.IsNullOrEmpty(SSHKeyFile)) config.AppendLine($"sshpassword={SSHPassword}"); @@ -283,6 +283,8 @@ public T GetService() public string SSHPassword { get; internal set; } public string SSHKeyFile { get; internal set; } public string SSHConnection { get; set; } + public bool NoCSP { get; set; } + public T GetController(string userId = null, string storeId = null, bool isAdmin = false) where T : Controller { var context = new DefaultHttpContext(); diff --git a/BTCPayServer.Tests/SeleniumTester.cs b/BTCPayServer.Tests/SeleniumTester.cs index 868671fff6..0b3e98d70f 100644 --- a/BTCPayServer.Tests/SeleniumTester.cs +++ b/BTCPayServer.Tests/SeleniumTester.cs @@ -38,6 +38,7 @@ public class SeleniumTester : IDisposable public async Task StartAsync() { + Server.PayTester.NoCSP = true; await Server.StartAsync(); var windowSize = (Width: 1200, Height: 1000); diff --git a/BTCPayServer/Components/NotificationsDropdown/Default.cshtml b/BTCPayServer/Components/NotificationsDropdown/Default.cshtml index a2fef15099..6dcf907f79 100644 --- a/BTCPayServer/Components/NotificationsDropdown/Default.cshtml +++ b/BTCPayServer/Components/NotificationsDropdown/Default.cshtml @@ -67,7 +67,7 @@ else @if (!disabled) { -