mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
docs: document http/ws api none option (#20666)
This commit is contained in:
committed by
GitHub
parent
65b5a149be
commit
b40b7dc210
@@ -77,6 +77,14 @@ reth node --http --http.api all
|
||||
reth node --http --http.api All
|
||||
```
|
||||
|
||||
Similarly, you can pass the `none` option (also case-insensitive) to start the HTTP server without exposing any JSON-RPC namespaces on that transport:
|
||||
|
||||
```bash
|
||||
reth node --http --http.api none
|
||||
```
|
||||
|
||||
The same options (`all` and `none`) are supported for the WebSocket transport via `--ws.api`.
|
||||
|
||||
You can also restrict who can access the HTTP server by specifying a domain for Cross-Origin requests. This is important, since any application local to your node will be able to access the RPC server:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user