In order to use RML Amazon S3 Pro extension media library upload feature, your S3 bucket CORS configuration must be enable your domain to upload to S3. Here are the steps to do so.

1. Login to your AWS account online as you would normally do

2. Access your S3 Management Console

3. Click on the bucket you want to enable upload to.  Then access the Permissions tabs and click on CORS configuration button.

S3BucketCORS

4. In the CORS configuration editor, add a CORSRule segment for each domain you want to allow upload. For example, the CORS rules below allow uploading from your localhost domain and www.onecodeshop.com domain. Make sure you keep only the CORS rule that serve your needs.  For more advanced options, you can refer to Amazon Documentation.

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
    <AllowedOrigin>https://www.onecodeshop.com</AllowedOrigin>
    <AllowedMethod>POST</AllowedMethod>
    <AllowedMethod>GET</AllowedMethod>
    <AllowedMethod>PUT</AllowedMethod>
    <AllowedMethod>HEAD</AllowedMethod>
    <ExposeHeader>ETag</ExposeHeader>
    <AllowedHeader>*</AllowedHeader>
</CORSRule>
<CORSRule>
    <AllowedOrigin>http://localhost</AllowedOrigin>
    <AllowedMethod>POST</AllowedMethod>
    <AllowedMethod>GET</AllowedMethod>
    <AllowedMethod>PUT</AllowedMethod>
    <AllowedMethod>HEAD</AllowedMethod>
    <ExposeHeader>ETag</ExposeHeader>
    <AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>

5. Click save. That should do it!