File tree 4 files changed +31
-0
lines changed
4 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export default function(hljs) {
15
15
"child-src" ,
16
16
"connect-src" ,
17
17
"default-src" ,
18
+ "fenced-frame-src" ,
18
19
"font-src" ,
19
20
"form-action" ,
20
21
"frame-ancestors" ,
@@ -24,10 +25,16 @@ export default function(hljs) {
24
25
"media-src" ,
25
26
"object-src" ,
26
27
"plugin-types" ,
28
+ "report-to" ,
27
29
"report-uri" ,
30
+ "require-trusted-types-for" ,
28
31
"sandbox" ,
29
32
"script-src" ,
33
+ "script-src-attr" ,
34
+ "script-src-elem" ,
30
35
"style-src" ,
36
+ "style-src-attr" ,
37
+ "style-src-elem" ,
31
38
"trusted-types" ,
32
39
"unsafe-hashes" ,
33
40
"worker-src"
Original file line number Diff line number Diff line change 1
1
Content-Security-Policy:
2
2
default-src 'self';
3
3
style-src 'self' css.example.com;
4
+ style-src-attr 'none';
5
+ style-src-elem https://example.com/;
4
6
img-src *.example.com;
7
+ fenced-frame-src https://example.com/;
8
+ report-to name-of-endpoint;
9
+ require-trusted-types-for 'script';
10
+ script-src 'self';
11
+ script-src-attr 'none';
12
+ script-src-elem https://example.com/;
5
13
script-src 'unsafe-eval' 'self' js.example.com 'nonce-Nc3n83cnSAd3wc3Sasdfn939hc3'
Original file line number Diff line number Diff line change 1
1
<span class="hljs-attribute">Content-Security-Policy</span>:
2
2
<span class="hljs-keyword">default-src</span> <span class="hljs-string">'self'</span>;
3
3
<span class="hljs-keyword">style-src</span> <span class="hljs-string">'self'</span> css.example.com;
4
+ <span class="hljs-keyword">style-src-attr</span> <span class="hljs-string">'none'</span>;
5
+ <span class="hljs-keyword">style-src-elem</span> https://example.com/;
4
6
<span class="hljs-keyword">img-src</span> *.example.com;
7
+ <span class="hljs-keyword">fenced-frame-src</span> https://example.com/;
8
+ <span class="hljs-keyword">report-to</span> name-of-endpoint;
9
+ <span class="hljs-keyword">require-trusted-types-for</span> <span class="hljs-string">'script'</span>;
10
+ <span class="hljs-keyword">script-src</span> <span class="hljs-string">'self'</span>;
11
+ <span class="hljs-keyword">script-src-attr</span> <span class="hljs-string">'none'</span>;
12
+ <span class="hljs-keyword">script-src-elem</span> https://example.com/;
5
13
<span class="hljs-keyword">script-src</span> <span class="hljs-string">'unsafe-eval'</span> <span class="hljs-string">'self'</span> js.example.com <span class="hljs-string">'nonce-Nc3n83cnSAd3wc3Sasdfn939hc3'</span>
Original file line number Diff line number Diff line change 1
1
Content-Security-Policy:
2
2
default-src 'self';
3
3
style-src 'self' css.example.com;
4
+ style-src-attr 'none';
5
+ style-src-elem https://example.com/;
4
6
img-src *.example.com;
7
+ fenced-frame-src https://example.com/;
8
+ report-to name-of-endpoint;
9
+ require-trusted-types-for 'script';
10
+ script-src 'self';
11
+ script-src-attr 'none';
12
+ script-src-elem https://example.com/;
5
13
script-src 'unsafe-eval' 'self' js.example.com 'nonce-Nc3n83cnSAd3wc3Sasdfn939hc3'
You can’t perform that action at this time.
0 commit comments