Skip to content

Commit

Permalink
Merge pull request #876 from ParsePlatform/flovilmart.fileUpload
Browse files Browse the repository at this point in the history
Allow crossdomain on filesRouter
  • Loading branch information
flovilmart committed Mar 7, 2016
2 parents e92ee7e + f23aed5 commit b36fd6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}));

Expand Down

0 comments on commit b36fd6f

Please sign in to comment.