connect-xcors
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -267,2 +267,3 @@ (function () { | ||
if ('undefined' === typeof origin) { | ||
//console.log('origin mismatch'); | ||
return next(); | ||
@@ -273,5 +274,8 @@ } | ||
if (!resources.some(resourceHandler)) { | ||
//console.log('resource mismatch'); | ||
return next(); | ||
} | ||
//console.log('CORS HEADERS SET'); | ||
// 5.2 | ||
@@ -286,2 +290,3 @@ // pre-flighted requests don't need a body, just headers | ||
corsHandler.config = config; | ||
return corsHandler; | ||
@@ -288,0 +293,0 @@ }; |
@@ -8,3 +8,3 @@ { | ||
"description": "CORS / XHR2 support for Node.JS's Connect", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"homepage": "https://github.com/antono/connect-cors", | ||
@@ -11,0 +11,0 @@ "repository": { |
11243
252