Like cors but async.
Same as cors but returns promise instead of invoking callback.
Examples:
const corsAsync = require('cors-async')(/* options here */);
...
return corsAsync(req, res)
.then(() => {
// next handler
});
MIT
Like cors but async.
Same as cors but returns promise instead of invoking callback.
Examples:
const corsAsync = require('cors-async')(/* options here */);
...
return corsAsync(req, res)
.then(() => {
// next handler
});
MIT