If you require your store to access a script on an external host, in Experience Builder, add the external host as a trusted site.
Required Editions
- In the navigation sidebar, select a store from the Store dropdown.
- Select Website Design, and then click Experience Builder.
- In Experience Builder, click and open the Settings menu (gear icon).
-
Click Security & Privacy, and then click + Add
Trusted Site.
If you don’t see the Add Trusted Site button, change the Security level setting from Strict: CSP to Relaxed: CSP. Then, click Allow. If you continue to have issues, turn off Lightning Locker
-
Enter the required information.
- Enter the name and URL.
- Select Active.
- Click Add Site.
-
Click Add Site again, and enter the required information.
- Enter the trusted site name and the trusted site URL.
- Select Active.
- Click Add Site.
- Confirm that the site names and URLs are active and listed under Trusted Sites for Scripts.