RPC: Limit request payload size to 50kB
This commit is contained in:
committed by
mergify[bot]
parent
f6cda2579f
commit
32dcce0ac1
@@ -353,6 +353,7 @@ impl JsonRpcService {
|
||||
]))
|
||||
.cors_max_age(86400)
|
||||
.request_middleware(request_middleware)
|
||||
.max_request_body_size(MAX_REQUEST_PAYLOAD_SIZE)
|
||||
.start_http(&rpc_addr);
|
||||
|
||||
if let Err(e) = server {
|
||||
|
||||
Reference in New Issue
Block a user