0.0.2 • Published 5 years ago

@koex/cors v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

cors

NPM version Coverage Status Dependencies Build Status license issues

cors for koa extend.

Install

$ npm install @koex/cors

Usage

// See more in test
import cors from '@koex/cors';

import * as Koa from 'koa';
const app = new Koa();

app.use(cors());

app.use(ctx => {
  ctx.body = 'Hello, World!';
});

app.listen(8000, '0.0.0.0', () => {
  console.log('koa server start at port: 8000');
});

Related