Socket
Book a DemoInstallSign in
Socket

@acastellon/cors

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acastellon/cors

CORS filter for Node Express Application

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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.

Keywords

express

FAQs

Package last updated on 14 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts