How to Resolve Content Security Policy (CSP) Errors in Experience Builder
Overview
If you are receiving “Can’t Access Resources” popup errors in Digital Experience Builder, the following steps can help resolve and reduce the number of errors that appear.
Sample Error
Here is an example of a “Can’t Access Resources” error that may appear in Digital Experience Builder.
CSP Issue | "Can't Access Resources" |
Description |
Access to resources from an unapproved, external host violates the CSP. To allow access to these resources, add the host to the list of trusted hosts in CSP Trusted Sites in Salesforce Setup. |
Blocked URL | https://sample.api.segment.io |
CSP Directive | connect-src |

Solution
In order to resolve the popup errors in Digital Experience Builder, you will need to configure a few Security & Privacy settings in Salesforce.
Steps
- Navigate to Digital Experiences and click on All Sites
- Click on Builder next to the appropriate Lightning Community
- On the left-hand side, expand the Settings tab page by clicking the gear icon,
and click on Security & Privacy settings.
- Click on Allow URL for all Blocked Resources.
- Once complete, click on the Publish button to apply the changes to the site.