From 14047df959b862e7e4f65a6102f32bb954f866cf Mon Sep 17 00:00:00 2001 From: zomo Date: Mon, 12 Dec 2022 00:56:49 -0600 Subject: [PATCH] CORS --- endpoints/endpoints.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {