@dylan/cors

0.1.0 • Public • Published

Cors

Middleware for Dylan which enables cors handling.

Install

npm install @dylan/cors

Usage

const dylan = require('dylan');
const cors = require('@dylan/cors');
const app = dylan();

app.use(cors({
  allowHeaders: 'Content-Type, X-Requested-With',
  allowlist: ['https://foo.org', 'https://boo.org']
}));

/@dylan/cors/

    Package Sidebar

    Install

    npm i @dylan/cors

    Weekly Downloads

    46

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    2.26 kB

    Total Files

    4

    Last publish

    Collaborators

    • steadymade
    • shanebo