Skip to content

Allow 4xx or 5xx statuses for cross-domain requests.

License

Notifications You must be signed in to change notification settings

lusever/koa-cors-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.post('/api/cors', cors, corsError, function *() {
  this.throw(401);
});

About

Allow 4xx or 5xx statuses for cross-domain requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published