Skip to content

Commit 8c8fcee

Browse files
committed
Fixing cross domain issues with /files for #169
1 parent c290070 commit 8c8fcee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ router.post('/files', function(req, res, next) {
7474
'Filename not provided.'));
7575
});
7676

77-
// TODO: do we need to allow crossdomain and method override?
7877
router.post('/files/:filename',
78+
middlewares.allowCrossDomain,
7979
bodyParser.raw({type: '*/*', limit: '20mb'}),
8080
middlewares.handleParseHeaders,
8181
processCreate);

0 commit comments

Comments
 (0)