File tree 2 files changed +1
-6
lines changed
2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 7
7
# Protection for versions that do not support CSP yet.
8
8
X-XSS-Protection: 1; mode=block
9
9
10
- # Do not allow being embedded in a frame.
11
- X-Frame-Options: SAMEORIGIN
12
-
13
10
# Do not give the referrer for external navigations.
14
11
Referrer-Policy: same-origin
15
12
25
22
# 7. `frame-ancestors` is the same purpose as `X-Frame-Options` above.
26
23
# 8. `form-action`prevents forms, we don't need this.`
27
24
# 9. `frame-src` allows the embedding of YouTube videos in the docs.
28
- Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src http: https: data:; object-src 'none'; connect-src *; frame-ancestors 'self'; form-action 'none'; frame-src www.youtube-nocookie.com
25
+ Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src http: https: data:; object-src 'none'; connect-src *; form-action 'none'; frame-src www.youtube-nocookie.com
29
26
30
27
# Set the correct MIME type for WebAssembly modules.
31
28
/*.wasm
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ const serverConfig = {
47
47
// /!\ Don't forget to keep it sync-ed with the headers here /!\
48
48
'X-Content-Type-Options' : 'nosniff' ,
49
49
'X-XSS-Protection' : '1; mode=block' ,
50
- 'X-Frame-Options' : 'SAMEORIGIN' ,
51
50
'Referrer-Policy' : 'same-origin' ,
52
51
'Content-Security-Policy' : oneLine `
53
52
default-src 'self';
@@ -59,7 +58,6 @@ const serverConfig = {
59
58
img-src http: https: data:;
60
59
object-src 'none';
61
60
connect-src *;
62
- frame-ancestors 'self';
63
61
form-action 'none'
64
62
` ,
65
63
} ,
You can’t perform that action at this time.
0 commit comments