From 7a26af537aebdd6d7c11bd5e53c9850f924e8f03 Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Wed, 15 May 2024 22:45:24 +0200 Subject: [PATCH] update cors --- backend/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/main.go b/backend/main.go index 96d3bb8..65155fe 100644 --- a/backend/main.go +++ b/backend/main.go @@ -45,8 +45,9 @@ func main() { router := gin.Default() router.Use(cors.New(cors.Config{ - AllowOrigins: []string{"http://localhost:5173", "http://localhost"}, + AllowOrigins: []string{"http://localhost:5173", "http://localhost", "https://feature-add-frontend.generationsheritage.pages.dev/", "https://csalad.varghacsongor.hu/"}, AllowCredentials: true, + AllowHeaders: []string{"Authorization"}, MaxAge: 12 * time.Hour, })) router.GET("/health", hc.HealthCheckHandler())