@hope/cors

1.0.3 • Public • Published

CORS middleware for Express

Test passing

Add CORS headers to server response, that allows cross-site connections

Usage

// Import
import CORS from '@hope/cors';
// Apply
app.all('*', CORS());

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i @hope/cors

    Weekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators