File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ customHeaders:
12
12
value : ' 1; mode=block'
13
13
- key : ' X-Content-Type-Options'
14
14
value : ' nosniff'
15
+ - key : ' Cache-Control'
16
+ value : ' no-store, no-cache'
17
+ - key : ' Pragma'
18
+ value : ' no-cache'
15
19
- key : ' Content-Security-Policy'
16
- value : ' upgrade-insecure-requests;'
20
+ value : " upgrade-insecure-requests; frame-ancestors 'none'; "
17
21
# CSP also set in _document.tsx meta tag
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ const getCspContent = (context) => {
62
62
if ( process . env . BUILD_ENV !== 'production' ) {
63
63
return `
64
64
default-src 'none';
65
+ object-src 'none';
66
+ base-uri 'none';
65
67
style-src 'self' 'unsafe-inline' ${ ANALYTICS_CSP . all . style . join ( ' ' ) } ;
66
68
font-src 'self' data:;
67
69
frame-src 'self' https://www.youtube-nocookie.com ${ ANALYTICS_CSP . all . frame . join (
@@ -85,6 +87,8 @@ const getCspContent = (context) => {
85
87
// Have to keep track of CSP inside customHttp.yml as well
86
88
return `
87
89
default-src 'none';
90
+ object-src 'none';
91
+ base-uri 'none';
88
92
style-src 'self' 'unsafe-inline' ${ ANALYTICS_CSP . all . style . join ( ' ' ) } ;
89
93
font-src 'self';
90
94
frame-src 'self' https://www.youtube-nocookie.com ${ ANALYTICS_CSP . all . frame . join (
@@ -102,6 +106,7 @@ const getCspContent = (context) => {
102
106
script-src 'self' ${ cspInlineScriptHash } ${ ANALYTICS_CSP . prod . script . join (
103
107
' '
104
108
) } ${ ANALYTICS_CSP . all . script . join ( ' ' ) } ;
109
+ require-trusted-types-for 'script';
105
110
` ;
106
111
} ;
107
112
You can’t perform that action at this time.
0 commit comments