koaman-cors
v1.0.0
Published
## Install
Downloads
2
Readme
koaman-cors
Install
npm i koaman-cors
# or
yarn add koaman-cors
How to use
const Koa = require('koa')
const cors = require('koaman-cors')
const app = new Koa()
app.use(cors())
app.use(async ctx => {
ctx.body = 'Hello World!'
})
app.listen(3000)