Is there an option to get server-side generated CSP nonce for non-GTM scripts?


I can see that there’s a nice and clean way to generate nonce for gtm. Is there a way to add the nonce to the DOM without installing GTM container? I’d like to avoid using unsafe-inline for my scripts.

1 Like

Good question, technically I don’t see a reason why we shouldn’t include the nonce regardless of whether GTM is installed.

Marking this as #pr-welcome.