koa-allow-origin
v0.0.2
Published
koa2 allow you cross domain with configuration
Downloads
1
Readme
Install
npm i koa-allow-origin --save
Usage
if you use koa-router
const allowOrigin = require('../middleware/koa-allow-origin')
router.use(allowOrigin(process.env.NODE_ENV, []))