diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -204,7 +204,7 @@
       };
     }
 
-    return function (req, res, next) {
+    return function corsMiddleware(req, res, next) {
       optionsCallback(req, function (err, options) {
         if (err) {
           next(err);
Name currently anonymous middleware function

- providing a name makes debugging & memory inspection much easier :)