egg-origin

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i egg-origin

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

7.65 kB

Total Files

7

Last publish

Collaborators

  • temool