Configure Unity Catalog storage account for CORS

You must configure cross-origin resource sharing (CORS) for Azure Databricks to upload files efficiently to managed volumes defined in Unity Catalog.

You can configure CORS settings during initial deployment of your Unity Catalog metastore storage or change these settings later. Only sufficiently privileged cloud administrators can apply these changes. The instructions that follow assume that you have proper credentials and are logged into the cloud console for the account containing your storage account.

Configure CORS settings for Azure Data Lake Storage Gen2

  1. Use the Azure portal to navigate to your storage account

  2. Select Settings > Resource sharing (CORS)

  3. Make sure the Blob service tab is selected. Edit the fields as follows:

    Field Value
    Allowed origins https://*.azuredatabricks.net
    Allowed methods PUT
    Allowed headers x-ms-blob-type
    Exposed headers (leave blank)
    Max age 1800
  4. Select Save.