---
schema_version: "1"
id: be46848be63c2a46ec74a453732472f91374d79bf33732369f4e9de7fa99be44
title: Configure CORS in Salesforce.com for Einstein Discover Integration in Tableau Server
collection: tableau
version: current
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/current/en-gb/server-linux/config_cors_sfdc.md
canonical_url: https://help.tableau.com/current/server-linux/en-gb/config_cors_sfdc.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 7f2fb4eb443a19714ef7ca2c7583475c8394da0d85db29955a41f1173b254f42
description: Configure CORS in Salesforce to enable the Einstein Discovery integration in Tableau Cloud.
---
[Skip to main content](#main-content)

# Configure CORS in Salesforce.com for Einstein Discover Integration in Tableau Server

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 organisation would do this configuration. You can find more information about CORS in the Salesforce documentation, [Configure Salesforce CORS Allowlist](https://help.salesforce.com/s/articleView?id=sf.extend_code_cors.htm).

## 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 username in the upper-right, and then select Setup.
    
    ![A gear icon with a tooltip that says Setup.](/tableau/current/en-gb/server-linux/en-gb/Img/config_oauth_einstein_cxapp_setup.png)
2. In the left navigation column, search for "cors" and select CORS .
    
    ![Search field with CORS entered as a search term, and the CORS search result shown.](/tableau/current/en-gb/server-linux/en-gb/Img/config_cors_einstein_search.png)
3. In CORS, in the Allowed Origins List section, click New.
    
    ![CORS setup window with the Allowed Origins List shown and a cursor hovering over the New button.](/tableau/current/en-gb/server-linux/en-gb/Img/config_cors_einstein_new.png)
4. In CORS Allowed Origin List Edit, enter the URL of your Tableau server, beginning with "https://".
    
    ![CORS setup window with an original URL pattern entered and a cursor hovering over the Save button.](/tableau/current/en-gb/server-linux/en-gb/Img/config_cors_einstein_allow_list.png)
    
    For more information about the URL pattern, see the Salesforce developer documentation: [https://developer.salesforce.com/docs/atlas.en-gb.chatterapi.meta/chatterapi/extend\_code\_cors.htm](https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/extend_code_cors.htm)
5. Click Save.