egg-origin
v1.0.3
Published
an eggjs middleware of custom origin
Downloads
3
Maintainers
Readme
egg-origin
Install
$ npm i egg-origin --save
Usage
// {app_root}/config/plugin.js
exports.origin = {
enable: true,
package: 'egg-origin',
};
Configuration
// {app_root}/config/config.default.js
exports.origin = {
whiteList: []
};
see config/config.default.js for more detail.
Example
// {app_root}/config/config.default.js
exports.origin = {
whiteList: [http://foo.com', 'http://localhost:8080']
};
Questions & Suggestions
Please open an issue here.