Create S3 bucket for testing

  1. Create S3 bucket and create two sub-directories “Engineering”, “Legal”

  2. Upload some test files in the bucket and sub-directories

  3. 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": []
  }
]