Context middleware
Middleware for creating a CORS handler. This is basically just the regular CORS package on NPM but with our own default settings.
Ambassify defaults:
maxAge: 86400
: Cache CORS results for 1 day
Example
const app = require('express')();
const cors = require('@ambassify/expressify/middleware/cors');
app.use(cors());