@lingua/cors
v1.0.0
Published
An express middleware for adding cors headers to incoming requests
Downloads
2
Readme
An express middleware for adding CORS headers to incoming requests
$ npm install @lingua/cors
Usage
const cors = require('@lingua/cors');
const app = require('express')();
app.use(cors.middleware({
origin: '*',
headers: ['Some-Header']
}));