From eabc959822567161132a150a0ea0473938031cca Mon Sep 17 00:00:00 2001 From: Andrii Holovko Date: Wed, 29 Jun 2022 23:04:20 +0300 Subject: [PATCH] fix: cors for gnap Signed-off-by: Andrii Holovko --- cmd/auth-rest/startcmd/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/auth-rest/startcmd/start.go b/cmd/auth-rest/startcmd/start.go index 56e43e2..35d7f88 100644 --- a/cmd/auth-rest/startcmd/start.go +++ b/cmd/auth-rest/startcmd/start.go @@ -787,7 +787,7 @@ func constructCORSHandler(handler http.Handler) http.Handler { return cors.New( cors.Options{ AllowedMethods: []string{http.MethodGet, http.MethodPost}, - AllowedHeaders: []string{"Origin", "Accept", "Content-Type", "X-Requested-With", "Authorization"}, + AllowedHeaders: []string{"*"}, }, ).Handler(handler) }