Configure CORS in Salesforce.com for Einstein Discover Integration in Tableau Cloud

In version 2021.1.0 the ability to integrate Einstein Discovery predictions into Tableau Dashboards was added. You can do this using the Einstein Discovery dashboard extension. A prerequisite for this is configuring Cross-Origin Resource Sharing (CORS) in the Salesforce org that hosts Tableau CRM and includes the model and predictions that are going to be used.

This procedure explains how an administrator in a Salesforce.com organization would do this configuration. You can find more information about CORS in the Salesforce documentation, Configure Salesforce CORS Allowlist(Link opens in a new window).

Configure CORS for Einstein Discovery.

Note: This procedure documents the process in Salesforce Lightning. If you are using the traditional interface, the navigation may be different but the configuration is the same.

  1. Sign in to your Salesforce.com developer account, click your user name in the upper-right, and then select Setup.

  2. In the left navigation column, search for "cors" and select CORS .

  3. In CORS, in the Allowed Origins List section, click New.

  4. In CORS Allowed Origin List Edit, enter the URL of Tableau Cloud, beginning with "https://".

    For more information about the URL pattern, see the Salesforce developer documentation: https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/extend_code_cors.htm(Link opens in a new window)

  5. Click Save.

Thanks for your feedback!Your feedback has been successfully submitted. Thank you!