var express = require('express'); var cors = require('cors'); var app = express(); app.use(cors()); /* your regular routes go here */