Skip to content

Commit

Permalink
CSP config update
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriibudko committed Jun 19, 2023
1 parent 3c456a3 commit 48f4dc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csp.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const PRODUCTION = '*.core.ac.uk core.ac.uk'
const config = {
'default-src': [SELF, PRODUCTION],
// PDF.js worker sadly uses unsafe-eval
'script-src': [SELF, '*.google-analytics.com', "'unsafe-eval'"],
'script-src': [SELF, '*.google-analytics.com', "'unsafe-eval'", '*.googletagmanager.com'],
'style-src': [
SELF,
'fonts.googleapis.com',
Expand All @@ -26,6 +26,7 @@ const config = {
// https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#transport
'*.google-analytics.com',
'stats.g.doubleclick.net',
'*.googletagmanager.com',
],
'connect-src': ['*'],
}
Expand Down

0 comments on commit 48f4dc7

Please sign in to comment.