koa-cors-error

0.0.2 • Public • Published

koa-cors-error

Bug fixed bug whith 4xx or 5xx not sent while cross-domain requests. koa onerror method have been completely replaced.

Installation

$ npm install koa-stylish

Use

var corsError = require('koa-cors-error');
 
app.post('/api/cors', cors, corsError, function *() {
  this.throw(401);
});

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i koa-cors-error

    Weekly Downloads

    211

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • lusever