[debug] cross domain
This commit is contained in:
parent
098f1b53ce
commit
a21995c357
2 changed files with 1 additions and 3 deletions
|
|
@ -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()
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ func Guard(c *gin.Context) {
|
||||||
gou.ProcessGuard(guard)(c)
|
gou.ProcessGuard(guard)(c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load 加载数据表格
|
// Load 加载数据表格
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue