1
This commit is contained in:
parent
50d52ef7f6
commit
57afd57463
@ -17,7 +17,7 @@ func Cors() gin.HandlerFunc {
|
|||||||
c.Header("Access-Control-Allow-Credentials", "true")
|
c.Header("Access-Control-Allow-Credentials", "true")
|
||||||
//}
|
//}
|
||||||
if method == "OPTIONS" {
|
if method == "OPTIONS" {
|
||||||
c.AbortWithStatus(http.StatusNoContent)
|
c.AbortWithStatus(http.StatusOK)
|
||||||
}
|
}
|
||||||
c.Next()
|
c.Next()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user