mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Improve auth
This commit is contained in:
parent
f3427dcf5f
commit
262957d4de
1 changed files with 1 additions and 1 deletions
|
@ -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/") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue