From 2dd64f0075d72fb971a02941422239191d22a3a0 Mon Sep 17 00:00:00 2001 From: Roey Berman Date: Tue, 31 Oct 2017 10:34:41 +0200 Subject: [PATCH] Allow configuring CORS fitting --- fittings/cors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fittings/cors.js b/fittings/cors.js index a5581bd..df8d87a 100644 --- a/fittings/cors.js +++ b/fittings/cors.js @@ -8,7 +8,7 @@ var CORS = require('cors'); module.exports = function create(fittingDef, bagpipes) { debug('config: %j', fittingDef); - var middleware = CORS(fittingDef); + var middleware = CORS(fittingDef.input); return function cors(context, cb) { debug('exec');