(rawUrl)
| 78 | } |
| 79 | |
| 80 | function isLocalCpaUrl(rawUrl) { |
| 81 | const parsed = parseUrlSafely(rawUrl); |
| 82 | if (!parsed) return false; |
| 83 | if (!['http:', 'https:'].includes(parsed.protocol)) return false; |
| 84 | return ['localhost', '127.0.0.1'].includes(parsed.hostname); |
| 85 | } |
| 86 | |
| 87 | function shouldBypassStep9ForLocalCpa(state) { |
| 88 | return normalizeLocalCpaStep9Mode(state?.localCpaStep9Mode) === 'bypass' |
no test coverage detected