diff --git a/cmd/http-server/main.go b/cmd/http-server/main.go index fe8395f..2198f94 100644 --- a/cmd/http-server/main.go +++ b/cmd/http-server/main.go @@ -34,7 +34,7 @@ func main() { r.Use(cors.New(cors.Config{ AllowOrigins: []string{"*"}, AllowMethods: []string{"GET", "DELETE", "PUT", "PATCH", "OPTIONS"}, - AllowHeaders: []string{"Origin"}, + AllowHeaders: []string{"Origin", "Content-Type"}, ExposeHeaders: []string{"Content-Length"}, AllowCredentials: true, MaxAge: 12 * time.Hour,