IsCorsEnabled returns true if cross-origin resource sharing is enabled.
()
| 491 | |
| 492 | // IsCorsEnabled returns true if cross-origin resource sharing is enabled. |
| 493 | func (cfg *RPCConfig) IsCorsEnabled() bool { |
| 494 | return len(cfg.CORSAllowedOrigins) != 0 |
| 495 | } |
| 496 | |
| 497 | func (cfg RPCConfig) KeyFile() string { |
| 498 | path := cfg.TLSKeyFile |