Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/whitelisting-whatfix-domains-on-salesforce

# Whitelist Whatfix domains on Salesforce Lightning

Whitelisting Whatfix domains on Salesforce Lightning enables Whatfix to communicate with Salesforce Lightning and fetch Whatfix content-related data. If Whatfix domains are not whitelisted, you won't be able to track how your content performs using Whatfix Analytics.

> [!WARNING]
>
> Only Salesforce Lightning Admins can perform the following action.

Use the following steps to whitelist Whatfix domains on Salesforce Lightning:

1. Log in to your Salesforce Lightning account.
2. Click the **Settings icon**, and then click **Setup**. ![SF\_SETUP](/images/6a/SF_SETUP-6ac1c2dc.png)
3. In the left pane, click **Security**. ![SF\_security](/images/5b/SF_security-5b291c89.png)
4. Click **CSP Trusted Sites**. ![SF\_CSP\_sites](/images/8e/SF_CSP_sites-8e332df4.png)
5. Click the **New Trusted Site** button. ![SF\_new\_trusted\_site.png](/images/c3/SF_new_trusted_site-c35936a5.png)
6. In the **Trusted Site Name** field, enter a name for the site. For example, enter **WhatfixDomain**. ![SF\_site\_name.png](/images/d2/SF_site_name-d21da25f.png)

> [!WARNING]
>
> This field does not accept spaces in the name.

You need to whitelist 4 domains and the procedure for each is mentioned.

> [!INFO]
>
> - Whitelist Google Analytics (GA) domains only if you have it configured for your account.
> - For more information on trusted Whatfix domains to whitelist, see [What are the trusted Whatfix domains to whitelist?](/web/what-are-the-trusted-whatfix-domains-to-whitelist)

**For <https://whatfix.com>**

1. In the **Trusted Site URL** field, enter **<https://whatfix.com>**. ![SF\_trusted\_site\_url.png](/images/31/SF_trusted_site_url-3106e9f0.png)
2. In the **CSP Directives** section, check the **Allow site for connect-src** and **Allow site for frame-src** checkboxes as the directives. ![salesforce\_settings\_CSP\_directives](/images/24/salesforce_settings_CSP_directives-24bfc9ce.png)

> [!WARNING]
>
> By default, the **Allow site for connect-src** & **Allow site for frame-src** checkboxes are disabled.

1. Click **Save & New**. ![SF\_save\_and\_new\_button](/images/1e/SF_save_and_new_button-1e594524.png)

The CSP Trusted Sites section displays the list of whitelisted Whatfix domains: ![SF\_CSP\_list.png](/images/3c/SF_CSP_list-3cce3622.png)

**For <https://cdn.whatfix.com>**

1. In the **Trusted Site URL** field, enter **<https://cdn.whatfix.com>**. ![salesforce\_settings\_CSP\_whatfix\_CDN\_url](/images/2f/salesforce_settings_CSP_whatfix_CDN_url-2fcb2d7c.png)
2. In the **CSP Directives** section, check the **Allow site for connect-src** and **Allow site for frame-src** checkboxes as the directives. ![salesforce\_settings\_CSP\_directives](/images/24/salesforce_settings_CSP_directives-24bfc9ce.png)

> [!WARNING]
>
> By default, the **Allow site for connect-src** & **Allow site for frame-src** checkboxes are disabled.

1. Click the **Save & New** button. ![SF\_save\_and\_new\_button](/images/1e/SF_save_and_new_button-1e594524.png)

You can see the list of whitelisted Whatfix domains in the CSP Trusted Sites section. ![SF\_CSP\_list.png](/images/3c/SF_CSP_list-3cce3622.png)

> [!WARNING]
>
> The following domains also need to be whitelisted if you have configured Google Analytics for your account.
>
> - <https://www.google-analytics.com>
> - <https://analytics.google.com>

**For <https://www.google-analytics.com>**

1. In the **Trusted Site URL** field, enter **<https://www.google-analytics.com>**. ![salesforce\_settings\_CSP\_GA\_site\_URL](/images/6d/salesforce_settings_CSP_GA_site_URL-6d6d7f27.png)
2. In the **CSP Directives** section, check the **Allow site for connect-src** checkbox as one of the directives. ![JSintegration\_Salesforce\_CSPdirectives](/images/1e/JSintegration_Salesforce_CSPdirectives-1e0dd0ea.png)

> [!WARNING]
>
> By default, the **Allow site for connect-src** checkbox is disabled.

1. Click the **Save & New** button. ![SF\_save\_and\_new\_button](/images/1e/SF_save_and_new_button-1e594524.png)

You can see the list of whitelisted Whatfix domains in the CSP Trusted Sites section. ![SF\_CSP\_list.png](/images/3c/SF_CSP_list-3cce3622.png)

**For <https://analytics.google.com>**

1. In the **Trusted Site URL** field, enter **<https://analytics.google.com>** ![salesforce\_settings\_CSP\_GA\_analytics\_site\_URL\_](/images/59/salesforce_settings_CSP_GA_analytics_site_URL_-59b0d8a3.png)
2. In the **CSP Directives** section, check **Allow site for connect-src** checkbox as one of the directives. ![JSintegration\_Salesforce\_CSPdirectives](/images/1e/JSintegration_Salesforce_CSPdirectives-1e0dd0ea.png)

> [!WARNING]
>
> By default, the **Allow site for connect-src** is disabled.

1. Click the **Save & New** button. ![SF\_save\_and\_new\_button](/images/1e/SF_save_and_new_button-1e594524.png)

The CSP Trusted Sites section displays the list of whitelisted Whatfix domains: ![SF\_CSP\_list.png](/images/3c/SF_CSP_list-3cce3622.png)

## Related

- [What are the trusted Whatfix domains to whitelist?](/web/what-are-the-trusted-whatfix-domains-to-whitelist)
