Many organizations use a Content Security Policy (CSP) to prevent cross-site scripting (XSS) attacks and data injection. A CSP header tells the browser which dynamic resources, such as JavaScript, Stylesheets, and images, can run. If your website uses a strict CSP, you must add GetFeedback to your allowlist to ensure your feedback assets load properly.
If your web setup requires exact hash-based matching, copy the values generated inside your installation screen and add them directly to your web server response header rules:
You can see your CSP directly in your browser. If you installed the GetFeedback snippet but your survey doesn’t show up or lacks styling, you can find your active rules using 3 standard methods:
You can download browser extensions that automatically list active server policies for your current tab.
If a specific CSP error message shows up in your browser console, you can resolve the constraint by adding the appropriate parameters from the list below to your configuration rules:
Share this basic template with your web development team to use as a guide:
Plaintext
script-src 'self' 'sha256-l2ABcDC7VZcirDGllBhNKaAYFYNnOZGjFc6nWjJmnLQ=' https://d6tizftlrpuof.cloudfront.net *.usabilla.com;
img-src 'self' https://d6tizftlrpuof.cloudfront.net https://*.usabilla.com;
style-src 'self' 'unsafe-inline' https://d6tizftlrpuof.cloudfront.net *.usabilla.com https://fonts.googleapis.com;
frame-src 'self' https://d6tizftlrpuof.cloudfront.net *.usabilla.com;
connect-src 'self' https://d6tizftlrpuof.cloudfront.net *.usabilla.com;
font-src 'self' https://d6tizftlrpuof.cloudfront.net *.usabilla.com https://fonts.googleapis.com;
Some strict network policies completely block rules like 'unsafe-inline' within the live style-src directive block.
If your policy forces these constraints, expect the following impact:
If your team can’t change the style-src rules for the tracking snippet, you need to set up a manual callback interface. To do this, deploy custom hooks to grab and restyle the native usabilla_live_button_container node element after the core solution has completed initializing on your page.
If your team has more technical questions about custom nonce channels, contact us.