I've downloaded the rack-cors gem, followed the documentations and tried to configure the CORS settings inside my Amazon AWS s3 bucket to accept GET requests from my site but I still keep getting the same error in my console.
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>https://[url]</AllowedOrigin>
<AllowedOrigin>http://[url]</AllowedOrigin>
<AllowedOrigin>http://localhost:3000</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
XMLHttpRequest cannot load [audio_url_from_amazon]. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin [my_website_url] is therefore not allowed access.
Any help with this would be awesome as I've read other questions but still can't seem to get the right config working.