fix CORS issue
This commit is contained in:
parent
19ffff4fcd
commit
5ee8449af6
|
@ -317,6 +317,7 @@ module.exports.create = function (app, xconfx, apiFactories, apiDeps, errorIfApi
|
||||||
], methods: [ "GET", "POST", "PATCH", "PUT", "DELETE" ] });
|
], methods: [ "GET", "POST", "PATCH", "PUT", "DELETE" ] });
|
||||||
}
|
}
|
||||||
cors(req, res, apiApp);
|
cors(req, res, apiApp);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
apiApp(req, res, next);
|
apiApp(req, res, next);
|
||||||
|
|
Loading…
Reference in New Issue