# My SharinPix components are blank/not rendered. What should I do?

## Why am I seeing this?

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2Fgit-blob-b3146c97a9e6cbe1f45f5cf336ad278b6574f56e%2Fcc22e7d7-3bec-495b-ae42-82d2fad3f6e7.png?alt=media)

Salesforce published a release updating the Content Security Policy (CSP) directives for Lightning pages to help protect organizations against cross-site scripting and other code injection attacks. This update restricts web content display within Salesforce; web content can include the SharinPix website and its images on Salesforce record pages or fields. If no CSP Trusted URLs are configured and activated for SharinPix in the organization, errors like the above will show. Images will also appear broken on Salesforce fields.

Adding the**Trusted URLs** for SharinPix will ensure compliance with the Salesforce update and enable access to the SharinPix component.

{% hint style="info" %}
**Information:**

For more information on this Salesforce update, please refer to this article: [Adopt Updated Content Security Policy (CSP) Directives (Release Update)](https://help.salesforce.com/s/articleView?id=release-notes.rn_security_other_updated_csp_ru.htm\&release=250\&type=5).
{% endhint %}

## Solution

To address blank SharinPix components or components not rendered on your Salesforce organization, please proceed as follows:

1. Update your SharinPix package to the latest version. For steps on how to update the SharinPix package, please refer to this documentation: [How to update SharinPix package from the AppExchange?](https://docs.sharinpix.com/faqs/how-to-update-sharinpix-package-from-the-appexchange). The minimum version required is 1.308.
2. Once the package is updated, please ensure that the CSP Trusted Sites entries for SharinPix are activated as demonstrated below:
   * Go to **Setup**. Enter **CSP** in the **Quick Find Box**.
   * Under **Security**, select **Trusted URLs**.
   * Then, click the entry labeled **SharinPix** and ensure that the **Active** checkbox is checked.
   * To complete, click the **SharinPixProxy** entry and ensure that the **Active** checkbox is checked.

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2Fgit-blob-f070de075c30b77df997e8385fbc3cc2889e34ad%2FScreenshot%202024-08-30%20at%205.19.58%E2%80%AFPM.png?alt=media)

## How to manually create the Trusted URLs for SharinPix?

The following steps should only be followed if a package upgrade is not feasible on an org. A package upgrade is, however, highly recommended to stay up to date with the latest features and fixes.

To add a CSP Trusted Site for SharinPix, please proceed as follows:

1. Go to **Setup**. Enter **CSP** in the **Quick Find Box**.
2. Under **Security**, select **Trusted URLs**.
3. Then, click on **New Trusted Site** as shown below:

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2Fgit-blob-3440f3638de73e70f1317eb61ddba36d3feabcad%2F1.png?alt=media)

You will be directed to the page below:

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2Fgit-blob-9c7539ac4e8d2a537311552c78a3fd4e3c5cbb27%2F2.png?alt=media)

4\. In the field, **Trusted Site Name** , enter **SharinPix**

5\. In the field **Trusted Site URL** , enter **<https://app.sharinpix.com>**

![](https://751044238-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi8tH1o5AHthxksYgF6ij%2Fuploads%2Fgit-blob-dd1e1bcce66a03e5b9ac4e38ec6eae7d816ab788%2F9.png?alt=media)

6\. Ensure that all checkboxes are checked.

7\. Then, click on **Save**

8\. **Next, repeat steps 3 to 6 to create new trusted sites using the following SharinPix endpoint URL as the Trusted Site URL:** *<mark style="color:red;">**<https://p.sharinpix.com>**</mark>*
