[debug] cross domain

This commit is contained in:
Max 2022-04-02 14:38:56 +08:00
parent 098f1b53ce
commit a21995c357
2 changed files with 1 additions and 3 deletions

View file

@ -27,7 +27,6 @@ func bearerJWT(c *gin.Context) {
claims := helper.JwtValidate(tokenString) claims := helper.JwtValidate(tokenString)
c.Set("__sid", claims.SID) c.Set("__sid", claims.SID)
c.Next()
} }
// crossDomain 跨域访问 // crossDomain 跨域访问
@ -41,6 +40,4 @@ func crossDomain(c *gin.Context) {
c.AbortWithStatus(204) c.AbortWithStatus(204)
return return
} }
c.Next()
} }

View file

@ -68,6 +68,7 @@ func Guard(c *gin.Context) {
gou.ProcessGuard(guard)(c) gou.ProcessGuard(guard)(c)
} }
} }
} }
// Load 加载数据表格 // Load 加载数据表格