🎨 Improve auth

This commit is contained in:
Daniel 2025-07-25 12:28:28 +08:00
parent f3427dcf5f
commit 262957d4de
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -274,7 +274,7 @@ func CheckAuth(c *gin.Context) {
return return
} }
// 放过 /appearance/ // 放过 /appearance/ 等(不要扩大到 /stage/ 否则鉴权会有问题)
if strings.HasPrefix(c.Request.RequestURI, "/appearance/") || if strings.HasPrefix(c.Request.RequestURI, "/appearance/") ||
strings.HasPrefix(c.Request.RequestURI, "/stage/build/export/") || strings.HasPrefix(c.Request.RequestURI, "/stage/build/export/") ||
strings.HasPrefix(c.Request.RequestURI, "/stage/protyle/") { strings.HasPrefix(c.Request.RequestURI, "/stage/protyle/") {