Enabling CORS

How to enable Cross-Origin Resource Sharing in your cloud buckets.

Enabling CORS for Data Visualization

In order to visualize Deep Lake datasets stored in your own cloud in the Deep Lake app, please enable CORS in the buckets containing the Deep Lake dataset and any source data in linked tensors, by inserting the snippet below in the CORS section of the Permissions tab for the bucket:

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "GET",
            "HEAD"
        ],
        "AllowedOrigins": [
            "*.activeloop.ai",
            "*.activeloop.dev"        
        ],
        "ExposeHeaders": []
    }
] 

Visualizing Your Datasets Locally

In order to visualize Deep Lake datasets stored in your own cloud using ds.visualize() or using our embedded visualizer, the AllowedOrigins values in CORS should be set to *.

Last updated