mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 04:20:53 +08:00
This commit is contained in:
parent
21f1f48a50
commit
ed3a6fcb9a
@ -154,7 +154,7 @@
|
|||||||
If you encounter problems, please report it on <a href="https://github.com/siyuan-note/siyuan/issues"
|
If you encounter problems, please report it on <a href="https://github.com/siyuan-note/siyuan/issues"
|
||||||
target="_blank">GitHub</a>
|
target="_blank">GitHub</a>
|
||||||
</div>
|
</div>
|
||||||
<button class="b3-button b3-button--white" onclick="exitSiYuan()">退出思源 Exit SiYuan</button>
|
<button class="b3-button b3-button--white" onclick="exitSiYuan()">退出 Exit</button>
|
||||||
</div>
|
</div>
|
||||||
<div style="overflow: hidden;
|
<div style="overflow: hidden;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -98,12 +98,17 @@ func CheckAuth(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 放过来自本机的资源文件请求
|
// 放过来自本机的某些请求
|
||||||
if strings.HasPrefix(c.Request.RemoteAddr, "127.0.0.1") &&
|
if strings.HasPrefix(c.Request.RemoteAddr, "127.0.0.1") {
|
||||||
(strings.HasPrefix(c.Request.RequestURI, "/assets/") || strings.HasPrefix(c.Request.RequestURI, "/history/assets/")) {
|
if strings.HasPrefix(c.Request.RequestURI, "/assets/") || strings.HasPrefix(c.Request.RequestURI, "/history/assets/") {
|
||||||
c.Next()
|
c.Next()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if strings.HasPrefix(c.Request.RequestURI, "/api/system/exit") {
|
||||||
|
c.Next()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 通过 Cookie
|
// 通过 Cookie
|
||||||
session := util.GetSession(c)
|
session := util.GetSession(c)
|
||||||
|
Loading…
Reference in New Issue
Block a user