File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,10 @@ export const CSP_SCRIPT_SRC_VALUES = [
64
64
"'report-sample'" ,
65
65
"'self'" ,
66
66
67
+ // UA.
67
68
"www.google-analytics.com/analytics.js" ,
69
+ // GA4.
70
+ "https://www.googletagmanager.com/gtag/js" ,
68
71
69
72
"assets.codepen.io" ,
70
73
"production-assets.codepen.io" ,
@@ -104,7 +107,12 @@ export const CSP_DIRECTIVES = {
104
107
"updates.developer.allizom.org" ,
105
108
"updates.developer.mozilla.org" ,
106
109
110
+ // UA.
107
111
"www.google-analytics.com" ,
112
+ // GA4.
113
+ "https://*.google-analytics.com" ,
114
+ "https://*.googletagmanager.com" ,
115
+
108
116
"stats.g.doubleclick.net" ,
109
117
"https://api.stripe.com" ,
110
118
] ,
@@ -146,7 +154,13 @@ export const CSP_DIRECTIVES = {
146
154
"wikipedia.org" ,
147
155
"upload.wikimedia.org" ,
148
156
157
+ // UA.
149
158
"www.google-analytics.com" ,
159
+
160
+ // GA4.
161
+ "https://*.google-analytics.com" ,
162
+ "https://*.googletagmanager.com" ,
163
+
150
164
"www.gstatic.com" ,
151
165
] ,
152
166
"manifest-src" : [ "'self'" ] ,
You can’t perform that action at this time.
0 commit comments