@hope/cors

Simple CORS middleware for Express

Usage no npm install needed!

<script type="module">
  import hopeCors from 'https://cdn.skypack.dev/@hope/cors';
</script>

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