Configure Unity Catalog storage account for CORS

You must configure cross-origin resource sharing (CORS) for 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 S3

The instructions that follow show how to use the AWS console to update S3 bucket permissions with the required CORS configuration.

Note

If instead you want to use an AWS CloudFormation template, be aware that CloudFormation uses some property names that differ from those listed in these instructions. Use the CORS configuration instructions in the AWS CloudFormation reference to get the correct property names.

  1. Use the AWS console to select your bucket from the buckets list.

  2. Select Permissions.

  3. Select Edit under Cross-origin resource sharing (CORS).

  4. Copy the following JSON configuration into the text box:

    [
        {
            "AllowedHeaders": [],
            "AllowedMethods": [
                "PUT"
            ],
            "AllowedOrigins": [
                "https://*.databricks.com"
            ],
            "ExposeHeaders": [],
            "MaxAgeSeconds": 1800
        }
    ]
    
  5. Select Save changes.