Update cors to http

This commit is contained in:
crypto-services 2024-02-15 16:27:42 +08:00
parent 96968b119e
commit bb6215bce5

View file

@ -1886,7 +1886,7 @@ func RegisterGraphQLService(stack *node.Node, backend ethapi.Backend, filterSyst
// RegisterHealthService adds the Health API to the node.
func RegisterHealthService(stack *node.Node, backend ethapi.Backend, cfg *node.Config) {
err := health.New(stack, backend, cfg.GraphQLCors, cfg.HTTPVirtualHosts)
err := health.New(stack, backend, cfg.HTTPCors, cfg.HTTPVirtualHosts)
if err != nil {
Fatalf("Failed to register the health service: %v", err)
}