Fixing cross domain issues with /files for #169

This commit is contained in:
Fosco Marotto
2016-02-02 20:29:46 -08:00
parent c290070b7d
commit 8c8fceec05

View File

@@ -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);