Skip to content

Commit

Permalink
Allow configuring CORS fitting
Browse files Browse the repository at this point in the history
  • Loading branch information
bergundy committed Oct 31, 2017
1 parent 9fc4098 commit 2dd64f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fittings/cors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 2dd64f0

Please sign in to comment.