diff --git a/index.js b/index.js index 7533bd6..bd06017 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,10 @@ const swaggerUI = require('swagger-ui-express'); const SWAGGERENDPOINT = process.env.SWAGGERENDPOINT; +// Enable CORS for all routes +const cors = require('cors'); +app.use(cors()); + app.set('views', path.join(__dirname, 'app\\views')); app.set('view engine', 'ejs'); app.use(express.static(path.join(__dirname, 'storage/css')));