(webPort: number, uiPort = 5173)
| 59 | * the cloud demo ships. |
| 60 | */ |
| 61 | export 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 | |
| 70 | export interface LoadConfigOptions { |
| 71 | /** Backend's actual bound web port; used to derive the CORS allowlist. */ |
no outgoing calls
no test coverage detected