MCPcopy Create free account
hub / github.com/SeismicSystems/summit / with_cors

Method with_cors

rpc/src/builder.rs:59–62  ·  view source on GitHub ↗
(mut self, cors_domains: Option<String>)

Source from the content-addressed store, hash-verified

57 /// `new_localhost` are the `0.0.0.0` / `127.0.0.1` shorthands. Holds the
58 /// canonical server config so the hardening below lives in exactly one place.
59 pub fn new_with_listen_addr(listen_addr: IpAddr, port: u16) -> Self {
60 Self {
61 addr: SocketAddr::new(listen_addr, port),
62 // http-only: Summit's RPC is request/response (no subscriptions), so
63 // websockets are not needed. jsonrpsee enables websockets with pings
64 // disabled by default, and an idle upgraded connection holds its
65 // max_connections permit until the client closes; disabling websocket

Calls

no outgoing calls

Tested by

no test coverage detected