From ac9fe94234b08a9d4c650ed62a57a05a4eac68db Mon Sep 17 00:00:00 2001 From: damikael Date: Wed, 13 May 2020 10:07:37 +0000 Subject: [PATCH] fix response save --- spid-validator/server/spid-validator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spid-validator/server/spid-validator.js b/spid-validator/server/spid-validator.js index ff64ade..8f61084 100644 --- a/spid-validator/server/spid-validator.js +++ b/spid-validator/server/spid-validator.js @@ -29,8 +29,8 @@ const Authenticator = require("./lib/authenticator"); var app = express(); app.use(helmet()); -app.use(bodyParser.json()); -app.use(bodyParser.urlencoded({ extended: true })); +app.use(bodyParser.json({limit: '3mb', extended: true})); +app.use(bodyParser.urlencoded({limit: '3mb', extended: true})); app.use(express.static(path.resolve(__dirname, "..", "client/build/assets"))); app.use("/assets", express.static(path.resolve(__dirname, "..", "client/build/assets")));