CORS Middleware for Node.js and Express

Here’s a little gist of Express middleware that will add support for CORS pre-flight handling to your website or API service. Many examples found on interwebs don’t return immediately after detecting the pre-flight request, and end up issuing duplicate database queries, etc…

One thought on “CORS Middleware for Node.js and Express”

Leave a Reply