fix(cors): PUT メソッドを許可(together/members/rename が CORS で弾かれていた)

This commit is contained in:
posimai 2026-04-21 08:35:30 +09:00
parent a05bdb614a
commit b2fce817bf
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ app.use(cors({
if (isAllowedOrigin(origin)) cb(null, true); if (isAllowedOrigin(origin)) cb(null, true);
else cb(new Error('CORS not allowed')); else cb(new Error('CORS not allowed'));
}, },
methods: ['GET', 'POST', 'PATCH', 'DELETE', 'OPTIONS'], methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization'] allowedHeaders: ['Content-Type', 'Authorization']
})); }));