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")));