update
All checks were successful
Build and Deploy / cleaning (push) Successful in 10s
Build and Deploy / build_image (push) Successful in 3m3s
Build and Deploy / deploy (push) Successful in 9s

This commit is contained in:
teddys48
2026-02-11 17:34:57 +07:00
parent 3cde6f7810
commit ce3dcd2aec

View File

@@ -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