Allow crossdomain on filesRouter

This commit is contained in:
Florent Vilmart
2016-03-06 17:20:11 -05:00
parent 375e7016be
commit f23aed522a

View File

@@ -182,7 +182,7 @@ function ParseServer({
var api = express();
//api.use("/apps", express.static(__dirname + "/public"));
// File handling needs to be before default middlewares are applied
api.use('/', new FilesRouter().getExpressRouter({
api.use('/', middlewares.allowCrossDomain, new FilesRouter().getExpressRouter({
maxUploadSize: maxUploadSize
}));