Skip to content

Commit f23aed5

Browse files
committed
Allow crossdomain on filesRouter
1 parent 375e701 commit f23aed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function ParseServer({
182182
var api = express();
183183
//api.use("/apps", express.static(__dirname + "/public"));
184184
// File handling needs to be before default middlewares are applied
185-
api.use('/', new FilesRouter().getExpressRouter({
185+
api.use('/', middlewares.allowCrossDomain, new FilesRouter().getExpressRouter({
186186
maxUploadSize: maxUploadSize
187187
}));
188188

0 commit comments

Comments
 (0)