Overview
A Content Security Policy (CSP) is a rule your website uses to control what content can load and run in visitors’ browsers. It’s a great security feature — but sometimes, it can block tools like Relevic from working properly if the settings are too strict.
To help Relevic run smoothly, you might need to make a few small updates to your CSP. Don’t worry — this is a common adjustment and safe when done correctly.
If you’re not familiar with CSPs, that’s okay! You can simply share this article with your web developer or the person who manages your website’s security settings. They’ll know exactly what to do.
Why You Might Need to Update Your CSP
Relevic uses scripts and styles to:
- Load personalization and A/B testing features 
- Run analytics and performance tracking 
- Display dynamic website content 
If your CSP doesn’t allow Relevic’s domains, these features may not load properly — for example, your personalization campaigns or visual editor might not appear.
Choose Which CSP Settings to Adjust
If your site already has a default CSP rule, you can add the following line to safely allow Relevic to run:
default-src ... https://*.relevic.com 'unsafe-inline'
Recommended Template for Stricter Policies
For stricter or more future-proof configurations, here’s a template you can use. It ensures Relevic has access to everything it needs while keeping your policy structured and clear:
img-src ... https://*.relevic.com
script-src ... https://*.relevic.com 'unsafe-inline'
connect-src ... https://*.relevic.com
font-src ... https://*.relevic.com
style-src ... https://*.relevic.com 'unsafe-inline'
This setup allows Relevic to:
- Load its scripts and styles 
- Connect to our servers for personalization logic 
- Display images and fonts used by Relevic 
Still Having Trouble?
Every website setup is a little different, and security rules can vary.
If you’re unsure, share this article with your developer or hosting provider. They’ll know how to apply the correct rules based on your server environment.
If the Relevic editor still doesn’t load properly after updating your CSP, reach out to our support team and we’ll help you verify everything step-by-step.
