From df7ef2cc31d94d58f9a1d4cf98a7268af54e7719 Mon Sep 17 00:00:00 2001 From: Hermann_Kitio Date: Tue, 21 Apr 2026 04:52:41 +0300 Subject: [PATCH] fix(cors): ajouter PATCH/PUT/DELETE dans allowMethods --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e55b339..fdc8079 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,7 +22,7 @@ app.use( 'http://localhost:5173', 'http://localhost:5174', ], - allowMethods: ['GET', 'POST', 'OPTIONS'], + allowMethods: ['GET', 'POST', 'PATCH', 'PUT', 'DELETE', 'OPTIONS'], allowHeaders: ['Content-Type', 'Authorization', 'X-Api-Version'], }) )