Skip to content

shanebo/cors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']
}));

About

Middleware for Dylan which enables cors handling.

Resources

License

Stars

Watchers

Forks

Packages

No packages published