# RUM | CSP | Nonce or Hash, how to add to JavaScript tag (and CSP header) manually

**URL:** <https://community.dynatrace.com/t/rum-csp-nonce-or-hash-how-to-add-to-javascript-tag-and-csp-header-manually/31596>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, javascript\
**Created:** [May 26, 2021, 9:55am UTC](https://community.dynatrace.com/t/rum-csp-nonce-or-hash-how-to-add-to-javascript-tag-and-csp-header-manually/31596 "2021-05-26T09:55:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![peteh](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@peteh](https://community.dynatrace.com/u/peteh)\
**Post date:** [October 17, 2025, 1:43am UTC](https://community.dynatrace.com/t/rum-csp-nonce-or-hash-how-to-add-to-javascript-tag-and-csp-header-manually/31596/3 "2025-10-17T01:43:19Z")

</div>

This is also a limitation we are facing - that our software developed in house, has requirement from our customers to protect against \<script\> injections, by using a nonce token and strict-dynamic Content-Security-Policy

Automatic injection from OneAgent lacks the nonce token, requiring us to explore other injection avenues for ruxitagent

---

_[View the full topic](https://community.dynatrace.com/t/rum-csp-nonce-or-hash-how-to-add-to-javascript-tag-and-csp-header-manually/31596)._
