Follow these steps to integrate the widget using a Salesforce community site:
- Open Community Builder in Salesforce.
- Click the Settings icon.
- Click Advanced.
- In the Head Markup section, click Edit Head Markup.
- Add UserWay JavaScript in the pop-up, then click Save.
Now, let’s whitelist UserWay domains as trusted sites:
- In the settings menu, click Security.
- In the Content Security Policy (CSP) section,
under Security Level, click the dropdown. - Select Relaxed CSP: Permit Access to Inline Scripts.
- Under Trusted Sites for Scripts, click +Add Trusted Site.
- Enter the following details in the pop-up:
Name: UserWay
URL: https://userway.org
- Select the Active checkbox.
- Click Add Site.
- Repeat the process, and add the following:
Name: UserWay API
URL: https://api.userway.org
Name:UserWay
URL: https://cdn.userway.org