MCPcopy Index your code
hub / github.com/simstudioai/sim / isLoopbackHostname

Function isLoopbackHostname

apps/sim/lib/core/utils/urls.ts:113–115  ·  view source on GitHub ↗
(hostname: string)

Source from the content-addressed store, hash-verified

111])
112
113export function isLoopbackHostname(hostname: string): boolean {
114 return LOCALHOST_HOSTNAMES.has(hostname)
115}
116
117/**
118 * Parses a comma-separated list of origins (e.g. from a `TRUSTED_ORIGINS` env

Callers 3

assertSafeOauthServerUrlFunction · 0.90
detectMcpAuthTypeFunction · 0.90
useStartMcpOauthFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected