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