---
title: "Configure the Sitecore Connect for Content Hub connector"
slug: "configure-the-sitecore-connect-for-content-hub-connector"
abstract: "How to configure CORS and Content Hub portal settings for DXP connectors."
---
# Configure the Sitecore Connect for Content Hub connector

The [Sitecore Connect for Content Hub connector](https://doc.sitecore.com/xp/en/developers/connect-for-ch/52/connect-for-content-hub/using-sitecore-connect-for-content-hub.html) requires that you configure Sitecore Content Hub as well as your Sitecore instances.

> [!note]
> If you are consuming public links and have whitelisted any of the `stylelabs.cloud` domains in the CORS configuration, you need to whitelist the `sitecorecontenthub.cloud` domain as well.

## Configure CORS for Content Hub

You must configure CORS for Content Hub to allow incoming traffic from the Sitecore instance.

To configure CORS for Content Hub:

1. In Content Hub, on the menu bar, click **Manage** :mdiCogOutline:.
2. On the **Manage** page, click **Settings**.
3. On the **Settings** page, in the **Search** box, type *CORSConfiguration* and press Enter.
4. In the *PortalConfiguration* list, select *CORSConfiguration*.
5. Add the Sitecore instance URL to the list of URLs (for example, **https://www.sitecore.instance.com**).
6. Click **Save**.

## Configure portal settings

You need to configure the redirection setting within *PortalConfiguration* to allow the Sitecore instance to access and display the contents of the Sitecore DAM.

1. In Content Hub, on the menu bar, click **Manage** :mdiCogOutline:.
2. On the **Manage** page, click **Settings**.
3. On the **Settings** page, in the **Search** box, type *Authentication* and press Enter.
4. In the *PortalConfiguration* list, select *Authentication*.
5. In the right pane, under *ExternalAuthenticationProviders* change the *authentication_mode* for all SSO providers to *Passive*:

    ```csharp
    "sitecore": [
       {
        "authentication_mode": "Passive",
        "client_id": "<ClientId>",
        "client_secret": "<ClientSecret>",
        "email_claim_type": " ClaimTypeOverride ",
        "external_user_creation_url": "https://www.registerme.com",
        "identity_server_url": "<Url>",
        "is_enabled": true,
        "messages": {
         "signIn": "translationKey",
         "signInDescription": "translationKey",
         "signInTitle": "translationKey"
       },
        "provider_name": "Sitecore,",
        "username_claim_type": "<ClaimTypeOverride>"
       }
      ]
    ```

> [!note]
> If you do not have SSO configured, basic authentication is used and the *authentication\_mode* is set to *Passive* by default.

> [!important]
> When entering translation keys in the **messages** configuration for the login page, do not include the **T\_** prefix. For example, enter "`signIn`": "`T_translationKey`" as "`signIn`": "`translationKey`".