From e5f9105364d4aec449c2fc8a5883bec71b6b3491 Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 4 Aug 2025 13:36:21 +0300 Subject: [PATCH] change cors --- hooks/run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/run.go b/hooks/run.go index d881f4f..ed0c36e 100644 --- a/hooks/run.go +++ b/hooks/run.go @@ -75,8 +75,8 @@ func RunHook(ctx context.Context, cs *corestate.CoreState, x *app.AppX) error { r := chi.NewRouter() r.Use(cors.Handler(cors.Options{ AllowedOrigins: []string{"*"}, - AllowedMethods: []string{"GET", "POST", "OPTIONS"}, - AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token"}, + AllowedMethods: []string{"POST"}, + AllowedHeaders: []string{"Accept", "Authorization", "Content-Type", "X-CSRF-Token", "X-Session-UUID"}, AllowCredentials: true, MaxAge: 300, }))