mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
add DELETE to allowed cors methods (#1001)
This commit is contained in:
@@ -39,6 +39,8 @@ func optionalCorsWrap(r *gin.Engine) {
|
||||
corsConfig.AllowHeaders = headers
|
||||
}
|
||||
|
||||
corsConfig.AllowMethods = []string{"GET", "POST", "PUT", "HEAD", "DELETE"}
|
||||
|
||||
logrus.Infof("CORS enabled for domains: %s", origins)
|
||||
|
||||
r.Use(cors.New(corsConfig))
|
||||
|
||||
Reference in New Issue
Block a user