Repository navigation
Expand file tree
/
Copy pathorigin-normalizer-vectors.json
More file actions
48 lines (48 loc) · 1.87 KB
/
Copy pathorigin-normalizer-vectors.json
File metadata and controls
48 lines (48 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"_comment": "origin 归一化契约的全量校验向量正本(docs/03-protocol.md §9 细则 5,验收锚点 C54)。四端 C54 测试内嵌同一向量集(ORIGIN_VECTORS:BEGIN/END 标记块),由 scripts/check_origin_vectors.sh 强制与正本一致。修改本文件必须四端同改并重跑 check 脚本。",
"vectors": [
["", ""],
[" ", ""],
["host/path", ""],
["::::", ""],
["123://host", ""],
["a b://host", ""],
["ab+cd-.://host", "ab+cd-.://host"],
["about:blank", ""],
["data:text/html,x", ""],
["mailto:a@b", ""],
["javascript:alert(1)", ""],
["file:///sdcard/index.html", "file://"],
["file://media/path", "file://"],
["FILE:///x.html", "file://"],
["content:///settings", "content://"],
["flutter-asset:///assets/web/index.html", "flutter-asset://"],
["asset://", "asset://"],
["https://", "https://"],
["https://example.com", "https://example.com"],
["HTTPS://EXAMPLE.com/Path?x=1#f", "https://example.com"],
["https://host:443", "https://host"],
["http://host:80", "http://host"],
["https://host:0443", "https://host"],
["http://host:080", "http://host"],
["https://host:8443", "https://host:8443"],
["http://host:8080/a/b?c#d", "http://host:8080"],
["http://u:p@host:8080", "http://host:8080"],
["http://host:65535", "http://host:65535"],
["http://host:99999", ""],
["custom://host:8080", "custom://host:8080"],
["custom://host", "custom://host"],
["ftp://host:21", "ftp://host:21"],
["https://:8080", ""],
["http://host:abc", ""],
["http://host:0", ""],
["http://host:00", ""],
["http://host:-80", ""],
["http://host:", ""],
["http://::", ""],
["http://[::1]", "http://[::1]"],
["http://[::1]:8443", "http://[::1]:8443"],
["http://[2001:DB8::1]:443", "http://[2001:db8::1]:443"],
["http://[::1]:0", ""]
]
}