Enable CORS on an S3 Bucket

1st Oct, 2024

 Go to the AWS S3 Management Console

  • Open the Amazon S3 Console.
  • Find and select the bucket (Bucket Name in your case) that is hosting the files.

2. Update the CORS Configuration

Once you're in the bucket settings, follow these steps to update the CORS policy:

  1. Click on the Permissions tab.
  2. Scroll down to the Cross-origin resource sharing (CORS) section.
  3. Click the Edit button to add a new CORS policy.

Add the following CORS policy (you can customize the domains allowed):

[
    {
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET", "HEAD"],
"AllowedOrigins": ["http://infixlms.test"],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]