diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -156,6 +156,7 @@ function cors (opts) {
         obj[key] = _handler
       })
     } else {
+      var obj = {}
       var _handler = toCors(handler)
       obj.options = _handler
       obj.get = _handler
need an obj in cors if-else (#<I>)