Minor improvements

This commit is contained in:
2025-07-11 17:59:38 +03:30
parent 09772a423c
commit 15485b03d4
3 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ func SetupRouter() *gin.Engine {
r := gin.Default()
r.Use(cors.New(cors.Config{
AllowOrigins: []string{"https://extra-mama-chiz.surge.sh"}, // Just for test
AllowAllOrigins: true,
AllowMethods: []string{"POST", "GET", "OPTIONS"},
AllowHeaders: []string{"Origin", "Content-Type", "Authorization"},
AllowCredentials: true,