Follow the steps below to do a cross domain configuration for Amazon S3:
Step 1: Login to the AWS management console using AWS account credentials.
Step 2: Navigate or search for 'S3' under Storage.
Step 3: Click on the Bucket you wish to do a cross-domain configuration for.
Step 4: Click on the
Permissions tab.
Step 5: Now click on the
Edit under Cross-Origin resource sharing (CORS)
Step 6: Paste the following content and click on the Save changes button.
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"HEAD",
"GET",
"PUT",
"POST",
"DELETE"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [
"ETag",
"x-amz-meta-custom-header"
]
}
]