This package has been deprecated

Author message:

deprecated

koa2-cors-error

1.0.0 • Public • Published

koa-cors-error

Module has fixed the bug when the system didn't send the 4xx or 5xx statuses through cross-domain requests. koa onerror method have been completely replaced.

Installation

$ npm install koa-cors-error

Use

var corsError = require('koa-cors-error');
 
app.use(cors());
app.use(corsError());
 
app.use(function(ctx, next) {
    ctx.throw(400);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i koa2-cors-error

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • scttcper