|
|
@@ -164,7 +164,7 @@ func main() {
|
|
|
r.Use(chimiddleware.RequestID)
|
|
|
r.Use(cors.Handler(cors.Options{
|
|
|
AllowedOrigins: cfg.AllowedOrigins,
|
|
|
- AllowedMethods: []string{"GET", "POST", "PATCH", "DELETE", "OPTIONS"},
|
|
|
+ AllowedMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
|
|
|
AllowedHeaders: []string{"Accept", "Authorization", "Content-Type"},
|
|
|
AllowCredentials: true,
|
|
|
MaxAge: 300,
|