Enabling CORS
How to enable Cross-Origin Resource Sharing in your AWS S3 buckets.
In order to visualize Deep Lake datasets stored in your own S3 buckets in the Deep Lake app, please enable Cross-Origin Resource Sharing (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": []
}
]
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 *
.