diff --git a/src/middlewares.js b/src/middlewares.js index 49aa683..51d9695 100644 --- a/src/middlewares.js +++ b/src/middlewares.js @@ -32,7 +32,7 @@ async function attachMiddlewares(app, opts) { // Add req.console for nicer formatted logs app.use(consoleMiddleware); - var corsOptions = { + const corsOptions = { origin: '*', methods: ['GET', 'PUT', 'POST', 'DELETE', 'OPTIONS'], allowedHeaders: ['Origin', 'X-Requested-With', 'Content-Type', 'Accept',