diff --git a/lib/gethfork/node/rpc_server.go b/lib/gethfork/node/rpc_server.go index a9b3d30b21..74f1dbe02f 100644 --- a/lib/gethfork/node/rpc_server.go +++ b/lib/gethfork/node/rpc_server.go @@ -53,14 +53,15 @@ func NewServer(config *RPCConfig, logger gethlog.Logger) Server { if config.EnableHTTP { rpcConfig.HTTPHost = config.Host rpcConfig.HTTPPort = config.HTTPPort - // todo (@pedro) - review if this poses a security issue + // todo - review if this poses a security issue + rpcConfig.HTTPCors = []string{allOrigins} rpcConfig.HTTPVirtualHosts = []string{allOrigins} rpcConfig.HTTPPathPrefix = config.HTTPPath } if config.EnableWs { rpcConfig.WSHost = config.Host rpcConfig.WSPort = config.WsPort - // todo (@pedro) - review if this poses a security issue + // todo - review if this poses a security issue rpcConfig.WSOrigins = []string{allOrigins} rpcConfig.WSPathPrefix = config.WsPath }