From be38fcc9262bfd6fa91c82ab133c71a011b9dd73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bene=C5=A1?= Date: Mon, 25 Sep 2023 18:11:56 +0200 Subject: [PATCH] feat: json type by default in `JsonRpcServer` (#2504) Fixes #2479 --- yarn-project/foundation/src/json-rpc/server/json_rpc_server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yarn-project/foundation/src/json-rpc/server/json_rpc_server.ts b/yarn-project/foundation/src/json-rpc/server/json_rpc_server.ts index b6b607078fb..34c7e851c98 100644 --- a/yarn-project/foundation/src/json-rpc/server/json_rpc_server.ts +++ b/yarn-project/foundation/src/json-rpc/server/json_rpc_server.ts @@ -51,6 +51,8 @@ export class JsonRpcServer { app.use( bodyParser({ jsonLimit: '10mb', + enableTypes: ['json'], + detectJSON: () => true, }), ); app.use(cors());