mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-03 11:34:57 -05:00
fix: use --http.corsdomain for http rpc server (#15620)
This commit is contained in:
@@ -1632,7 +1632,7 @@ impl<RpcMiddleware> RpcServerConfig<RpcMiddleware> {
|
||||
.http_only()
|
||||
.set_http_middleware(
|
||||
tower::ServiceBuilder::new()
|
||||
.option_layer(Self::maybe_cors_layer(self.ws_cors_domains.clone())?)
|
||||
.option_layer(Self::maybe_cors_layer(self.http_cors_domains.clone())?)
|
||||
.option_layer(Self::maybe_jwt_layer(self.jwt_secret))
|
||||
.option_layer(Self::maybe_compression_layer()),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user