express-cross
v1.0.0
Published
CORS middleware for express
Downloads
1
Readme
##Express-Cross A CORS middleware for express.js
##Installation
npm install express-cross
##Usage
In order to use express-cross into your express app.
var app = express();
var cors = require('express-cross');
app.use(cors(true, ["localhost", "google.com"], ["foo": "bar"]));
app.get('/', function (req, res) {
res.send('Hello World!');
});
##License ###MIT