From 4712ceaf2c340d0e5b582d94a64c05602c7a67f7 Mon Sep 17 00:00:00 2001 From: ssongliu Date: Thu, 24 Sep 2026 14:01:05 +0800 Subject: [PATCH] fix: allow read-only firewall APIs in demo mode (#13914) --- core/middleware/demo_handle.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/middleware/demo_handle.go b/core/middleware/demo_handle.go index bbd5fe481..3705a4d0b 100644 --- a/core/middleware/demo_handle.go +++ b/core/middleware/demo_handle.go @@ -27,6 +27,11 @@ var demoAllowedRoutes = map[demoRoute]struct{}{ {http.MethodPost, "/api/v2/toolbox/clam/base"}: {}, {http.MethodPost, "/api/v2/backups/record/size"}: {}, + {http.MethodPost, "/api/v2/hosts/firewall/base"}: {}, + {http.MethodPost, "/api/v2/hosts/firewall/forward/base"}: {}, + {http.MethodPost, "/api/v2/hosts/firewall/rules/native/detail"}: {}, + {http.MethodPost, "/api/v2/hosts/firewall/rules/sync/preview"}: {}, + {http.MethodPost, "/api/v2/core/auth/login"}: {}, {http.MethodPost, "/api/v2/core/logs/login"}: {}, {http.MethodPost, "/api/v2/core/logs/operation"}: {},