8000 GitHub - temool/egg-origin: an eggjs origin middware
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

temool/egg-origin

Repository files navigation

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

About

an eggjs origin middware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0