diff --git a/main.go b/main.go index de9609a..873404d 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,7 @@ import ( func main() { beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{ AllowOrigins: []string{"*"}, - AllowMethods: []string{"GET", "PUT", "PATCH"}, + AllowMethods: []string{"GET", "PUT", "PATCH", "POST"}, AllowHeaders: []string{"Origin"}, ExposeHeaders: []string{"Content-Length"}, AllowCredentials: true,