Minor improvements
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user