Skip to content

Commit 00431f8

Browse files
authored
Merge pull request #65 from Arjuna-Ragil/auth-sys
hotfix: dev Cors
2 parents 46d3092 + d232985 commit 00431f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Backend/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ func main() {
3232
r := gin.Default()
3333

3434
r.Use(cors.New(cors.Config{
35-
AllowOrigins: []string{"http://localhost:5173", "http://100.111.195.90:3001", "https://core-life.arjunaa.my.id"},
36-
AllowMethods: []string{"GET", "POST", "PUT", "DELETE"},
35+
AllowOrigins: []string{"http://localhost:5173", "http://100.111.195.90:3001", "https://core-life-dev.arjunaa.my.id", "https://core-life.arjunaa.my.id"},
36+
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"},
3737
AllowHeaders: []string{"Origin", "Content-Type", "Accept", "Authorization"},
3838
AllowCredentials: true,
3939
MaxAge: 12 * time.Hour,

0 commit comments

Comments
 (0)