refactor(aiot): Edge 白名单改为通配符,免逐个添加

/api/ai/**/edge/** 覆盖所有 Edge 设备回调端点,
今后新增 Edge 端点无需再改白名单。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 10:22:23 +08:00
parent 5137f4e496
commit 1bbcac4b4d

View File

@@ -105,8 +105,7 @@ public class WebSecurityConfig {
defaultExcludes.add("/api/ai/roi/snap/callback");
defaultExcludes.add("/api/ai/roi/snap/image");
defaultExcludes.add("/api/ai/camera/get");
defaultExcludes.add("/api/ai/alert/edge/report");
defaultExcludes.add("/api/ai/alert/edge/resolve");
defaultExcludes.add("/api/ai/**/edge/**");
if (userSetting.getInterfaceAuthentication() && !userSetting.getInterfaceAuthenticationExcludes().isEmpty()) {
defaultExcludes.addAll(userSetting.getInterfaceAuthenticationExcludes());