1
This commit is contained in:
parent
8b2ee5f29a
commit
d128023bc9
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user