MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / originPort

Function originPort

apps/cli/src/main.ts:2769–2769  ·  view source on GitHub ↗
(url: URL)

Source from the content-addressed store, hash-verified

2767const LOCAL_SERVICE_HOSTS = new Set(["localhost", "127.0.0.1", "::1", "[::1]"]);
2768
2769const originPort = (url: URL): string => url.port || (url.protocol === "https:" ? "443" : "80");
2770
2771const sameServerOrigin = (left: string, right: string): boolean => {
2772 const leftUrl = new URL(normalizeExecutorServerConnection({ origin: left }).origin);

Callers 1

sameServerOriginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected