Remove wrong conditional in Origin trustworthy check

It might block WebUI from logging in under specific network configurations.

Fix up 130c0d8487.
PR #21972.
This commit is contained in:
Chocobo1
2024-12-13 16:12:29 +08:00
committed by GitHub
parent 27451469fa
commit 4c6dd8e68d

View File

@@ -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;
}