fix(connection): require trustedHosts entries in canonical authority form
A dangling colon (harness.internal:) or zero-padded port parses cleanly while WHATWG silently rewrites it, turning an intended exact-port grant into an any-port grant. Replace the character blacklist with a round-trip check: an entry must read back from parsing exactly as written (case aside), refusing the whole rewrite class at load.
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write packages/client/connection/README.md
|
||||
README.md: 591e8361c1d28fab909bfe4a4f176fa1887edd93
|
||||
README.zh.md: bd772b2ab0f36abc8dbce35d30f55b40e53d0756
|
||||
README.md: 7e437e8fd81d1d57ead5ead64d2049111ad163dc
|
||||
README.zh.md: 3615d5ea1be44e6da8e41fa17f645eb414d1ef3e
|
||||
|
||||
Reference in New Issue
Block a user