Skip to content

Commit 8c02933

Browse files
fix: add Mailchimp domain to CSP configuration for enhanced security in script loading
1 parent ff1f14b commit 8c02933

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ app.use(
8787
'https://www.google.com',
8888
'https://www.gstatic.com',
8989
'https://www.googletagmanager.com',
90+
// Mailchimp JSONP (`footer.component` subscribe) loads a script from *.list-manage.com
91+
'https://*.list-manage.com',
9092
],
9193
scriptSrcAttr: ["'none'"],
9294
styleSrc: ["'self'", "'unsafe-inline'", 'https://fonts.googleapis.com'],
@@ -99,6 +101,7 @@ app.use(
99101
'https://*.google-analytics.com',
100102
'https://*.analytics.google.com',
101103
'https://stats.g.doubleclick.net',
104+
'https://*.list-manage.com',
102105
'wss://*.googleapis.com',
103106
],
104107
upgradeInsecureRequests: [],

0 commit comments

Comments
 (0)