1.0.3 • Published 4 years ago

@acastellon/cors v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

CORS

Wrapper object that contains the generic most common configuration values of filtering & Options to be used in Node Express Applications.

it uses a plain text file to define by line what are the allowed requesters by CORS.

usage:

const cors      = require('@acastellon/cors')('<path/to/whiletlist>');

cors.enableCORS(app);  
// where 'app' is the Application Express instance object.
1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago