micro-access
Easy CORS handling for
micro
Install
$ npm install micro-access
Usage
const json send = ;const microAccess = ; moduleexports = async { const body = await ; ;};
API
microAccess([options])(handler)
options
Type: Object
Same as control-access
.
handler
Type: Function
The request handler to wrap.
Related
- control-access - Easy CORS handling
License
MIT © Kevin Mårtensson