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

Function getBrowserOrigin

apps/sim/lib/core/utils/urls.ts:168–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166 * baked into the client bundle at build time can't pin requests to the wrong host.
167 */
168export function getBrowserOrigin(): string | null {
169 return typeof window !== 'undefined' ? window.location.origin : null
170}
171
172/**
173 * Returns the socket server URL for server-side internal API calls.

Callers 4

getAuthBaseUrlFunction · 0.90
urls.test.tsFile · 0.90
isSafeHttpUrlFunction · 0.90
getSocketUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected