From eef301c6ec64afff68ee69b5f9d6ca4a46492da5 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 4 Mar 2019 17:25:01 +0900 Subject: [PATCH] Fix error message if X-Forwarded-Proto not set correctly --- BTCPayServer/Views/Shared/_Layout.cshtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Views/Shared/_Layout.cshtml b/BTCPayServer/Views/Shared/_Layout.cshtml index f17fa6054..2f2a54e04 100644 --- a/BTCPayServer/Views/Shared/_Layout.cshtml +++ b/BTCPayServer/Views/Shared/_Layout.cshtml @@ -85,7 +85,7 @@ @@ -112,6 +112,7 @@ var expectedProtocol = @Html.Raw(Json.Serialize(env.ExpectedProtocol)); if (window.location.host != expectedDomain || window.location.protocol != expectedProtocol + ":") { document.getElementById("badUrl").style.display = "block"; + document.getElementById("browserScheme").innerText = window.location.protocol.substr(0, window.location.protocol.length -1); }