express-libcors
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

express-libcors

npm version build status coverage status Language grade: JavaScript Bundle size

This is an express middleware using libcors as the underlying algorithm for determining the CORS actions.

Usage

The express-libcors package provides a function libcors which wraps the libcors package and turns it into an express middleware:

const { libcors } = require( 'express-libcors' );

myExpressApp.use( libcors( /* options... */ ) );

The optional options object this libcors function takes, is directly forwarded to libcors, so check its documentation for valid values.

Package Sidebar

Install

npm i express-libcors

Weekly Downloads

175

Version

2.0.0

License

MIT

Unpacked Size

3.77 kB

Total Files

4

Last publish

Collaborators

  • grantila