aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index b6564b6..ec26280 100644
--- a/main.go
+++ b/main.go
@@ -33,6 +33,7 @@ func main() {
33 router := gin.Default() 33 router := gin.Default()
34 config := cors.DefaultConfig() 34 config := cors.DefaultConfig()
35 config.AllowAllOrigins = true 35 config.AllowAllOrigins = true
36 config.AllowCredentials = true
36 router.Use(cors.New(config)) 37 router.Use(cors.New(config))
37 database.ConnectDB() 38 database.ConnectDB()
38 // For frontend static serving - only for local debug 39 // For frontend static serving - only for local debug