diff --git a/lib/services/express.js b/lib/services/express.js index f333e501f..6acd9fce4 100644 --- a/lib/services/express.js +++ b/lib/services/express.js @@ -89,7 +89,14 @@ const initMiddleware = (app) => { extended: true, }), ); - app.use(bodyParser.json(config.bodyParser)); + app.use( + bodyParser.json({ + ...config.bodyParser, + verify: (req, res, buf) => { + req.rawBody = buf; + }, + }), + ); app.use(methodOverride()); // Add the cookie parser and flash middleware app.use(cookieParser());