Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve auth

Daniel262957d4de5f
diff --git a/kernel/model/session.go b/kernel/model/session.go
index ef3bc103ac..82b76d5595 100644
--- a/kernel/model/session.go
+++ b/kernel/model/session.go
@@ -274,7 +274,7 @@ func CheckAuth(c *gin.Context) {
return
}
- // 放过 /appearance/
+ // 放过 /appearance/ 等(不要扩大到 /stage/ 否则鉴权会有问题)
if strings.HasPrefix(c.Request.RequestURI, "/appearance/") ||
strings.HasPrefix(c.Request.RequestURI, "/stage/build/export/") ||
strings.HasPrefix(c.Request.RequestURI, "/stage/protyle/") {