Skip to content

Commit

Permalink
Gateway: allow CORS all origins to fix firefox error (#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel authored Jul 16, 2024
1 parent b13272b commit e9b2977
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/gethfork/node/rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e9b2977

Please sign in to comment.