@acastellon/cors
v1.0.3
Published
CORS filter for Node Express Application
Downloads
7
Readme
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.