amazon s3 - AWS S3 Inconsistently Provides CORS Headers -


i'm using aws s3 , i've configured bucket use cors:

<?xml version="1.0" encoding="utf-8"?> <corsconfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <corsrule>     <allowedorigin>*</allowedorigin>     <allowedmethod>get</allowedmethod>     <maxageseconds>3000</maxageseconds>     <allowedheader>authorization</allowedheader> </corsrule> </corsconfiguration> 

i'm requesting svg images bucket, in client-side react application. i'm rendering them inline response needs have cors headers enabled. works, , doesn't. can't isolate causing issue. retrieving 1 image fine; uploaded new image bucket, , image, once downloaded, giving me error:

xmlhttprequest cannot load https://s3.amazonaws.com/.../example.svg. no 'access-control-allow-origin' header present on requested resource. origin 'http://localhost:3000' therefore not allowed access. 

i've tried adding <allowedheader>*</allowedheader> , <exposeheader>etag</exposeheader>, , clearing cache every change, no effect. i'm confused. why aren't headers coming through?


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -