From 0d2b629db334af6d310f324ba2da9716222003b3 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sat, 6 May 2023 12:44:03 +0300 Subject: fix: allow credentials cors --- main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'main.go') diff --git a/main.go b/main.go index b6564b6..ec26280 100644 --- a/main.go +++ b/main.go @@ -33,6 +33,7 @@ func main() { router := gin.Default() config := cors.DefaultConfig() config.AllowAllOrigins = true + config.AllowCredentials = true router.Use(cors.New(config)) database.ConnectDB() // For frontend static serving - only for local debug -- cgit v1.2.3