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'] }));