From ea4f151d25364063d563a4100f3372ff5703e9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAJOS=20F=C3=9CLEP?= Date: Mon, 27 Jan 2025 15:00:18 +0000 Subject: [PATCH] MOD: update instead of patch in cors config --- srv/middleware/security.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srv/middleware/security.js b/srv/middleware/security.js index 6402158..eac480c 100644 --- a/srv/middleware/security.js +++ b/srv/middleware/security.js @@ -20,7 +20,7 @@ function setupSecurityMiddleware(app) { // CORS configuration app.use(cors({ origin: process.env.ALLOWED_ORIGINS?.split(',') || ['http://localhost:4004'], - methods: ['GET', 'POST', 'PATCH', 'DELETE'], + methods: ['GET', 'POST', 'UPDATE', 'DELETE'], allowedHeaders: ['Content-Type', 'Authorization'], credentials: true }));