We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7631102 commit 3ecd1f5Copy full SHA for 3ecd1f5
1 file changed
src/server/app/app.js
@@ -95,6 +95,7 @@ module.exports = function createApp(options) {
95
process.env.TZ = config.get("app.timezone", "UTC");
96
97
const corsConfig = config.get("cors");
98
+ const jsonConfig = config.get("json");
99
const allowedOrigins = corsConfig.allowedOrigins;
100
const allowAllOrigins = allowedOrigins.includes("*");
101
const corsOptions = {
@@ -171,7 +172,7 @@ module.exports = function createApp(options) {
171
172
173
app.use(requestLogger(app));
174
app.use(compression(config));
- app.use(express.json());
175
+ app.use(express.json(jsonConfig));
176
app.use(view(config));
177
app.use(express.static(path.join(appRoot, "src", "public")));
178
app.use(express.urlencoded({ extended: true }));
0 commit comments