MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / buildDefaultOrigins

Function buildDefaultOrigins

src/workspaces/config.ts:61–68  ·  view source on GitHub ↗
(webPort: number, uiPort = 5173)

Source from the content-addressed store, hash-verified

59 * the cloud demo ships.
60 */
61export function buildDefaultOrigins(webPort: number, uiPort = 5173): string[] {
62 return [
63 `http://localhost:${uiPort}`,
64 `http://127.0.0.1:${uiPort}`,
65 `http://localhost:${webPort}`,
66 `http://127.0.0.1:${webPort}`,
67 ];
68}
69
70export interface LoadConfigOptions {
71 /** Backend's actual bound web port; used to derive the CORS allowlist. */

Callers 2

config.spec.tsFile · 0.85
loadConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected