MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / IsCorsEnabled

Method IsCorsEnabled

config/config.go:493–495  ·  view source on GitHub ↗

IsCorsEnabled returns true if cross-origin resource sharing is enabled.

()

Source from the content-addressed store, hash-verified

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

Callers 2

startRPCMethod · 0.80
startRPCMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected