🎨 Add header Access-Control-Max-Age for OPTIONS requests https://github.com/siyuan-note/siyuan/pull/9257

This commit is contained in:
Daniel 2023-09-25 09:28:58 +08:00
parent ebd1dce81c
commit ca5c3fca93
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -530,7 +530,7 @@ func corsMiddleware() gin.HandlerFunc {
c.Header("Access-Control-Allow-Private-Network", "true")
if c.Request.Method == "OPTIONS" {
c.Header("Access-Control-Max-Age", 600)
c.Header("Access-Control-Max-Age", "600")
c.AbortWithStatus(204)
return
}