Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
It should be a const
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkaye committed Sep 18, 2018
1 parent 5616898 commit adad3c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit adad3c4

Please sign in to comment.