restify-cors-middleware
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "restify-cors-middleware", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"author": "Tabcorp Digital Technology Team", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"restify": "2.6.x - 2.8.x" | ||
"restify": "2.6.x - 3.0.x" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
@@ -11,3 +11,3 @@ # restify-cors-middleware | ||
var cors = corsMiddleware({ | ||
preflightMaxAge: 5 //Optional | ||
preflightMaxAge: 5, //Optional | ||
origins: ['http://api.myapp.com', 'http://web.myapp.com'], | ||
@@ -14,0 +14,0 @@ allowHeaders: ['API-Token'], |
12752
13