diff --git a/cmd/main.go b/cmd/main.go index 143e0d5..287873d 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -41,6 +41,7 @@ func serve(ctx context.Context) error { r := chi.NewRouter() r.Use(cors.Handler(cors.Options{ AllowedOrigins: strings.Split(os.Getenv("CORS_ALLOWED_ORIGINS"), ","), + AllowedMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}, })) r.Use(middleware.AllowContentEncoding("application/json"))