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);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    210
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    210
  • 0.0.1
    1

Package Sidebar

Install

npm i koa-cors-error

Weekly Downloads

211

Version

0.0.2

License

MIT

Last publish

Collaborators

  • lusever