Reduce rpc client pre-flight requests by setting max-age header (#8082)
automerge
This commit is contained in:
parent
fab8ef379f
commit
69a6d07371
|
@ -131,6 +131,7 @@ impl JsonRpcService {
|
|||
.cors(DomainsValidation::AllowOnly(vec![
|
||||
AccessControlAllowOrigin::Any,
|
||||
]))
|
||||
.cors_max_age(86400)
|
||||
.request_middleware(RpcRequestMiddleware::new(ledger_path))
|
||||
.start_http(&rpc_addr);
|
||||
if let Err(e) = server {
|
||||
|
|
Loading…
Reference in New Issue