fix(csp): allow X (Twitter) conversion pixel domains on hosted (#5804)

This commit is contained in:
Waleed
2026-07-21 11:16:36 -07:00
committed by GitHub
parent 53f8ce5ebc
commit e01cd2c18d
+7
View File
@@ -66,6 +66,9 @@ const STATIC_SCRIPT_SRC = [
'https://*.hs-analytics.net',
'https://*.hscollectedforms.net',
'https://*.hs-banner.com',
// X (Twitter) conversion pixel (landing pages) — the base code injects
// uwt.js as a <script> tag from static.ads-twitter.com
'https://static.ads-twitter.com',
]
: []),
] as const
@@ -106,6 +109,10 @@ const STATIC_CONNECT_SRC = [
// The visitor beacon itself is an image pixel (img-src, already
// permitted below), not a connect-src request.
'https://*.hscollectedforms.net',
// X (Twitter) conversion pixel — uwt.js sends conversion beacons here
// via fetch/sendBeacon. The t.co image-pixel fallback is already
// covered by the `https:` wildcard in img-src.
'https://analytics.twitter.com',
]
: []),
] as const