diff options
Diffstat (limited to '')
| -rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -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 |