1.0.3 • Published 7 years ago
egg-origin v1.0.3
egg-origin
Install
$ npm i egg-origin --saveUsage
// {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.