From ce3dcd2aece61264068e9f74007ecf61534c45c2 Mon Sep 17 00:00:00 2001 From: teddys48 Date: Wed, 11 Feb 2026 17:34:57 +0700 Subject: [PATCH] update --- main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/main.go b/main.go index 5928227..b8d04ef 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,6 @@ func corsMiddleware(next http.Handler) http.Handler { w.Header().Set("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS, FETCH") w.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization") - // Untuk preflight request if r.Method == "OPTIONS" { w.WriteHeader(http.StatusOK) return