const cors = require('cors'); const CORS = { origin: '*', optionsSuccessStatus: 200, }; module.exports = app => { app.use(cors(CORS)); };