1.0.3 • Published 5 years ago

egg-origin v1.0.3

Weekly downloads
28
License
MIT
Repository
github
Last release
5 years ago

egg-origin

NPM version build status Test coverage David deps Known Vulnerabilities npm download

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.

License

MIT