Content Security Policy (CSP) is a standard that's designed to prevent cross-site scripting and other code-injection attacks. This means, if you have a Content Security Policy in place, it might disallow inline JavaScript codes and prevent the browser from sending monitoring data to the Dynatrace Server.
CSP rules can be set via the meta tag or the HTTP header. In general, the CSP rules on a page must allow loading and executing of the Real User Monitoring (RUM) JavaScript.
If the report URL has been configured to send the monitoring signals to a beacon forwarder, add this URL to your Content Security Policy rules.
unsafe inline
is enabled.The monitoring signals in this case are always sent to the beacon forwarder. Therefore, ensure that the URL to which this data is sent is added to the CSP rules.
unsafe inline
is enabled.