diff --git a/middleware/cors.js b/middleware/cors.js index 6b94c23..9e33204 100644 --- a/middleware/cors.js +++ b/middleware/cors.js @@ -32,7 +32,7 @@ export function createCors() { } res.set('Access-Control-Allow-Origin', `${protocol}//${host}`) - res.set('Access-Control-Allow-Methods', req.method) + res.set('Access-Control-Allow-Methods', '*') if (headers) { res.set('Access-Control-Allow-Headers', headers)