From c2978f6cabfc44decc5f570a45f29b91191c955c Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 8 Dec 2024 16:05:06 +0800 Subject: [PATCH] Remove wrong conditional in Origin trustworthy check It might block WebUI from logging in under specific network configurations. --- src/webui/webapplication.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/webui/webapplication.cpp b/src/webui/webapplication.cpp index 2cb3edda6..168fd16c2 100644 --- a/src/webui/webapplication.cpp +++ b/src/webui/webapplication.cpp @@ -783,10 +783,6 @@ bool WebApplication::isOriginTrustworthy() const if (m_isHttpsEnabled) return true; - // client is on localhost - if (env().clientAddress.isLoopback()) - return true; - return false; }