diff --git a/endpoints/endpoints.go b/endpoints/endpoints.go index 1dba2d0..18979d8 100644 --- a/endpoints/endpoints.go +++ b/endpoints/endpoints.go @@ -13,7 +13,7 @@ func Run() { r.Use(cors.New(cors.Config{ AllowOrigins: []string{"http://localhost:4000"}, AllowMethods: []string{"GET", "POST", "DELETE", "PATCH"}, - AllowHeaders: []string{"Origin", "Content-Type"}, + AllowHeaders: []string{"Origin", "Content-Type", "Authorization"}, ExposeHeaders: []string{"Content-Length"}, AllowCredentials: true, AllowOriginFunc: func(origin string) bool {