Configure CORS in Salesforce.com for Einstein Discover Integration in Tableau Online
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, Set Up Cross-Origin Resource Sharing (CORS)(Link opens in a new window).
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.
Sign in to your Salesforce.com developer account, click your user name in the upper-right, and then select Setup.
In the left navigation column, search for "cors" and select CORS .
In CORS, in the Allowed Origins List section, click New.
In CORS Allowed Origin List Edit, enter the URL of Tableau Online, 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)