fix(cors): ajouter PATCH/PUT/DELETE dans allowMethods

This commit is contained in:
Hermann_Kitio 2026-04-21 04:52:41 +03:00
parent fcd8fe7017
commit df7ef2cc31

View file

@ -22,7 +22,7 @@ app.use(
'http://localhost:5173', 'http://localhost:5173',
'http://localhost:5174', 'http://localhost:5174',
], ],
allowMethods: ['GET', 'POST', 'OPTIONS'], allowMethods: ['GET', 'POST', 'PATCH', 'PUT', 'DELETE', 'OPTIONS'],
allowHeaders: ['Content-Type', 'Authorization', 'X-Api-Version'], allowHeaders: ['Content-Type', 'Authorization', 'X-Api-Version'],
}) })
) )