/
host_feature.test
46 lines (37 loc) · 991 Bytes
/
host_feature.test
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
default-src trusted.com *.trusted.com;
img-src *;
media-src media1.com media2.com;
script-src userscripts.example.com;
frame-ancestors https://alice https://bob;
frame-ancestors https://example.com/;
sandbox allow-scripts;
----------------------------------------------------
[
["directive", "default-src"],
["host", ["trusted.com"]],
["host", [
["important", "*"],
".trusted.com"
]],
["punctuation", ";"],
["directive", "img-src"],
["host", [
["important", "*"]
]],
["punctuation", ";"],
["directive", "media-src"],
["host", ["media1.com"]],
["host", ["media2.com"]],
["punctuation", ";"],
["directive", "script-src"],
["host", ["userscripts.example.com"]],
["punctuation", ";"],
["directive", "frame-ancestors"],
["host", ["https://alice"]],
["host", ["https://bob"]],
["punctuation", ";"],
["directive", "frame-ancestors"],
["host", ["https://example.com/"]],
["punctuation", ";"],
["directive", "sandbox"], " allow-scripts", ["punctuation", ";"]
]