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

**URL:** <https://meta.discourse.org/t/is-there-an-option-to-get-server-side-generated-csp-nonce-for-non-gtm-scripts/230904>\
**Category:** Product Support\
**Tags:** pr-welcome\
**Created:** [June 23, 2022, 2:04pm UTC](https://meta.discourse.org/t/is-there-an-option-to-get-server-side-generated-csp-nonce-for-non-gtm-scripts/230904 "2022-06-23T14:04:11Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kuba.bomba](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuba.bomba/32/264646_2.png) [@kuba.bomba](https://meta.discourse.org/u/kuba.bomba)\
**Post date:** [June 23, 2022, 2:04pm UTC](https://meta.discourse.org/t/is-there-an-option-to-get-server-side-generated-csp-nonce-for-non-gtm-scripts/230904/1 "2022-06-23T14:04:11Z")

</div>

Hi,

I can see that there’s a nice and clean way to generate [nonce for gtm](https://meta.discourse.org/t/using-nonces-in-google-tag-manager-scripts/188296). 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.

---

_[View the full topic](https://meta.discourse.org/t/is-there-an-option-to-get-server-side-generated-csp-nonce-for-non-gtm-scripts/230904)._
