This commit is contained in:
aozhiwei 2024-04-12 08:12:16 +08:00
parent 8b2ee5f29a
commit d128023bc9

View File

@ -7,7 +7,6 @@ import (
func Cors() gin.HandlerFunc {
return func(c *gin.Context) {
/*
method := c.Request.Method
//origin := c.Request.Header.Get("Origin")
//if origin != "" {
@ -20,7 +19,6 @@ func Cors() gin.HandlerFunc {
if method == "OPTIONS" {
c.AbortWithStatus(200)
}
c.Next()*/
c.Next()
}
}