From 4c6dd8e68d61e06136c18f7cd82fc6845d454297 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 13 Dec 2024 16:12:29 +0800 Subject: [PATCH] Remove wrong conditional in Origin trustworthy check It might block WebUI from logging in under specific network configurations. Fix up 130c0d848751ca0ebf236ddc09310b7d3a32a80e. PR #21972. --- 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; }