Create S3 bucket and create two sub-directories “Engineering”, “Legal”
Upload some test files in the bucket and sub-directories
Edit bucket CORS permissions to allow cross-origin calls
Important: This is for testing only, in production or real-world scenario you need to have proper CORS settings that allow only trusted origin.
[
{
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET"],
"AllowedOrigins": ["*"],
"ExposeHeaders": []
}
]