From 5ee8449af6f7212117e5a2554e557f2a3402cc30 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 24 May 2017 05:44:23 +0000 Subject: [PATCH] fix CORS issue --- lib/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/main.js b/lib/main.js index 67f46bf..6cbca02 100644 --- a/lib/main.js +++ b/lib/main.js @@ -317,6 +317,7 @@ module.exports.create = function (app, xconfx, apiFactories, apiDeps, errorIfApi ], methods: [ "GET", "POST", "PATCH", "PUT", "DELETE" ] }); } cors(req, res, apiApp); + return; } apiApp(req, res, next);