—
The chart runs in your browser, so the browser fetches NASDAQ.db directly from S3. S3 will
block the read unless the bucket allows cross-origin requests. Since you own
hive-in-the-cloud, add this CORS rule in S3 → bucket → Permissions → Cross-origin
resource sharing (CORS):
[
{
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET", "HEAD"],
"AllowedOrigins": ["*"],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]
Or via CLI: aws s3api put-bucket-cors --bucket hive-in-the-cloud --cors-configuration
file://cors.json
The object also needs to be readable (public-read, or via a presigned URL pasted into the box above). For
tighter security you can replace "*" in AllowedOrigins with the exact origin
shown in your browser's console error.