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