fix: reject invalid authentication origin authorities

This commit is contained in:
Codex
2026-10-06 16:12:32 +02:00
parent 2aac228cdc
commit 24b03d4caf
2 changed files with 2 additions and 2 deletions
@@ -21,7 +21,7 @@ func TestPublicOriginMatchesBackendURLContract(t *testing.T) {
t.Errorf("runtime-valid origin refused: %s", origin)
}
}
for _, origin := range []string{"https://example.com:99999", "http://localhost:8080", "HTTP://127.0.0.1:8080", "https://example.com/path", "http://example.com", "https://user:password@example.com"} {
for _, origin := range []string{"https://:443", "https://[fe80::1%25eth0]", "https://example.com:99999", "http://localhost:8080", "HTTP://127.0.0.1:8080", "https://example.com/path", "http://example.com", "https://user:password@example.com"} {
if ValidPublicURL(origin) {
t.Errorf("runtime-invalid origin accepted: %s", origin)
}