diff --git a/BTCPayServer/Components/MainNav/Default.cshtml b/BTCPayServer/Components/MainNav/Default.cshtml index 9bac3d62f..13d13b850 100644 --- a/BTCPayServer/Components/MainNav/Default.cshtml +++ b/BTCPayServer/Components/MainNav/Default.cshtml @@ -9,6 +9,7 @@ @using BTCPayServer.Client @using BTCPayServer.Services @using BTCPayServer.Views.CustodianAccounts +@inject Microsoft.AspNetCore.Http.IHttpContextAccessor HttpContext; @inject BTCPayServerEnvironment Env @inject SignInManager SignInManager @inject PoliciesSettings PoliciesSettings @@ -227,7 +228,7 @@ })() } - else if (Env.IsSecure) + else if (Env.IsSecure(HttpContext.HttpContext)) {