From e448a6c2f8b47a43252d83aae2d67428c5382bb2 Mon Sep 17 00:00:00 2001 From: ACoolName Date: Sat, 25 May 2024 01:28:18 +0300 Subject: [PATCH] added allow creds --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 832d6b6..be78ae6 100644 --- a/main.go +++ b/main.go @@ -22,6 +22,7 @@ func main() { router := gin.Default() cors_config := cors.DefaultConfig() cors_config.AllowOrigins = []string{"https://games.acooldomain.co"} + cors_config.AllowCredentials = true router.Use(cors.New(cors_config)) file, err := os.Open(os.Getenv(CONFIG_PATH_ENV_VAR)) if err != nil {