preflight requests middleware
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
cakefile
index.coffee
index.js
package.json

README.md

Preflight

Preflight requests middleware.

Installation

npm install preflight

Usage

preflight = require('preflight');
...
app.use(preflight());

With this middleware enable after CORS and before authentication, every preflight request will return a 200 http code.

License

MIT License, see LICENSE