jack-http-cors

1.0.1 • Public • Published

jack-http-cors

NPM version Downloads

This Jack-Stack Plugin allows you to define source URLs that have CORS authority to make requests to your application

Config

The only configuration this plugin requires is whitelist, which is an array of URL roots (defaults shown):

jack.add(require('jack-http-cors').configure({
  whitelist: [
    'http://localhost:3000',
    'http://localhost:5000',
  ]
}));

Readme

Keywords

Package Sidebar

Install

npm i jack-http-cors

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dncrews