Skip to content
Log in

How to list your site as a trusted URL in Salesforce

On this page

Use this process to add your store’s domain to Salesforce as a trusted site, so the Take Payment button on an Order can communicate with your payment provider. Until you do this, Salesforce’s content security policy blocks that communication and the button fails.

Before you begin

  • You need Salesforce administrator permissions to edit Setup.
  • Have your store’s domain ready, including https://. If you have taken your store live on your own domain, use that. Otherwise use your .storeconnect.app address.

Add your store as a trusted site

  1. Go to Setup > CSP Trusted Sites.
  2. Select New Trusted Site.
  3. Enter a Trusted Site Name, for example StoreConnect Domain.
  4. Enter your store’s URL in the Trusted Site URL field.
  5. Select all of the CSP Directives.
  6. Select Save.

    Salesforce CSP Trusted Sites form with the site name, URL, and all CSP directives selected

  7. Confirm the site is active: it appears in the CSP Trusted Sites list with Active selected.
  8. Open an Order and select Take Payment. The payment provider loads instead of returning an error.

:::note Add a separate trusted site for each store domain you use. A store on its own domain and the same store’s .storeconnect.app address are two different URLs to Salesforce. :::

For more detail, see Salesforce’s CSP Trusted Sites documentation.

Was this article helpful?

Was this article helpful?