Skip to content

DF-927: Tighten CSP and use nonce-aware GTM#1165

Open
alexluckett wants to merge 1 commit intomainfrom
gtm-nonces
Open

DF-927: Tighten CSP and use nonce-aware GTM#1165
alexluckett wants to merge 1 commit intomainfrom
gtm-nonces

Conversation

@alexluckett
Copy link
Copy Markdown
Contributor

@alexluckett alexluckett commented Apr 15, 2026

  • Updated the GTM init snippet to propagate the CSP nonce
  • Hardened scriptSrc. Scripts are now trusted by nonce only, with 'strict-dynamic' for GA and interactive-map.
  • Replaced wildcard GA/GTM origins with explicit hosts
  • Tightened frameSrc. Only allowed when GTM is configured, else none.
  • Tightened workerSrc, retaining blob: for MapLibre
  • Added missing directives for baseUri, formAction, frameAncestors, objectSrc

@alexluckett alexluckett changed the title Tighten CSP and use nonce-aware GTM DF-927: Tighten CSP and use nonce-aware GTM Apr 15, 2026
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant