Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@hope/cors

HopeUA8MIT1.0.3

Simple CORS middleware for Express

readme

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());