From d232985cb8f90e4bd8a9d4138ad9afa8bd4b3479 Mon Sep 17 00:00:00 2001 From: Arjuna Date: Mon, 12 Jan 2026 10:46:23 +0700 Subject: [PATCH] hotfix: dev Cors --- Backend/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Backend/main.go b/Backend/main.go index f7ac912..632515b 100644 --- a/Backend/main.go +++ b/Backend/main.go @@ -32,8 +32,8 @@ func main() { r := gin.Default() r.Use(cors.New(cors.Config{ - AllowOrigins: []string{"http://localhost:5173", "http://100.111.195.90:3001", "https://core-life.arjunaa.my.id"}, - AllowMethods: []string{"GET", "POST", "PUT", "DELETE"}, + AllowOrigins: []string{"http://localhost:5173", "http://100.111.195.90:3001", "https://core-life-dev.arjunaa.my.id", "https://core-life.arjunaa.my.id"}, + AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS"}, AllowHeaders: []string{"Origin", "Content-Type", "Accept", "Authorization"}, AllowCredentials: true, MaxAge: 12 * time.Hour,