@koex/cors
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @koex/cors

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

7.68 kB

Total Files

5

Last publish

Collaborators

  • uniquecolesmith