( baseUrl: string | undefined, )
| 77 | } |
| 78 | |
| 79 | export function isFirstPartyBaseUrlValue( |
| 80 | baseUrl: string | undefined, |
| 81 | ): boolean { |
| 82 | if (!baseUrl) { |
| 83 | return false |
| 84 | } |
| 85 | try { |
| 86 | const host = new URL(baseUrl).host |
| 87 | return getAllowedFirstPartyHosts().includes(host) |
| 88 | } catch { |
| 89 | return false |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Check whether the configured first-party base URL override still points at |
no test coverage detected