From 8c8fceec05a46d6d7cefece49e0e6d67ea1d061c Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Tue, 2 Feb 2016 20:29:46 -0800 Subject: [PATCH] Fixing cross domain issues with /files for #169 --- files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files.js b/files.js index e2575a5d..a840e098 100644 --- a/files.js +++ b/files.js @@ -74,8 +74,8 @@ router.post('/files', function(req, res, next) { 'Filename not provided.')); }); -// TODO: do we need to allow crossdomain and method override? router.post('/files/:filename', + middlewares.allowCrossDomain, bodyParser.raw({type: '*/*', limit: '20mb'}), middlewares.handleParseHeaders, processCreate);