fix: web auth config (#1094)

This commit is contained in:
Levi authored and GitHub committed 2025-09-09 18:35:04 +08:00
1 parent cfdcb586ee
commit 5c2f66f4b6
3 files changed
+775 -163

No files matched your search

+1 -1
View File
@@ -191,7 +191,7 @@ func BuildServer(startCfg *model.StartConfig) (*http.Server, net.Listener, error
}
if enableBasicAuth {
if r.URL.Path == "/api/web/login" {
if !strings.HasPrefix(r.URL.Path, "/api/") || r.URL.Path == "/api/web/login" {
h.ServeHTTP(w, r)
return
}