@acastellon/cors

1.0.3 • Public • Published

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.

/@acastellon/cors/

    Package Sidebar

    Install

    npm i @acastellon/cors

    Weekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    4.17 kB

    Total Files

    4

    Last publish

    Collaborators

    • acastellon