From c55cb1e3a39df5fed74082d5c004c6826ca780f3 Mon Sep 17 00:00:00 2001 From: ssongliu Date: Thu, 24 Sep 2026 13:31:46 +0800 Subject: [PATCH] fix: allow read-only firewall APIs in demo mode --- 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 bbd5fe48193a..3705a4d0b820 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"}: {},