From fc72759a92418109c2cb54653282325df3dfcece Mon Sep 17 00:00:00 2001 From: HYC Fixer Date: Sun, 30 Aug 2026 13:47:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=8E=A7=E5=88=B6=E5=8F=B0?= =?UTF-8?q?=20/api/ui/=20=E5=8A=A0=E5=85=A5=E5=8F=97=E4=BF=9D=E6=8A=A4?= =?UTF-8?q?=E7=AB=AF=E7=82=B9:=20=E8=AE=BF=E9=97=AE=E6=97=B6=E5=BC=B9=20Ba?= =?UTF-8?q?sic=20=E7=99=BB=E5=BD=95=E6=A1=86,=20=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=90=8E=E5=90=8C=E6=BA=90=20API=20=E8=87=AA=E5=8A=A8=E5=B8=A6?= =?UTF-8?q?=E5=87=AD=E6=8D=AE(=E4=BF=AE=E5=A4=8D=20UI=20=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E5=85=A8=20401)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handlers/http_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handlers/http_handler.py b/handlers/http_handler.py index e185625..8a3b1f0 100644 --- a/handlers/http_handler.py +++ b/handlers/http_handler.py @@ -339,6 +339,9 @@ class MirrorServerHandler(BaseHTTPRequestHandler): 'api/v2/alerts', 'api/v2/activity', 'api/v2/monitor', + # 管理控制台页面本身: 访问时浏览器弹 Basic 登录框, + # 登录后同源 API 请求自动携带凭据, 面板才能工作 + 'api/ui', ] # 任何方法都公开