From b2fce817bfe9c1b7a946344aa259e1d802fc4d7e Mon Sep 17 00:00:00 2001 From: posimai Date: Tue, 21 Apr 2026 08:35:30 +0900 Subject: [PATCH] =?UTF-8?q?fix(cors):=20PUT=20=E3=83=A1=E3=82=BD=E3=83=83?= =?UTF-8?q?=E3=83=89=E3=82=92=E8=A8=B1=E5=8F=AF=EF=BC=88together/members/r?= =?UTF-8?q?ename=20=E3=81=8C=20CORS=20=E3=81=A7=E5=BC=BE=E3=81=8B=E3=82=8C?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 6f3bbbdb..31d2885e 100644 --- a/server.js +++ b/server.js @@ -169,7 +169,7 @@ app.use(cors({ if (isAllowedOrigin(origin)) cb(null, true); else cb(new Error('CORS not allowed')); }, - methods: ['GET', 'POST', 'PATCH', 'DELETE', 'OPTIONS'], + methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], allowedHeaders: ['Content-Type', 'Authorization'] }));