Images randomly missing from Amazon S3, possible CORS issue -


we use s3 store our images wecora.com. have bucket setup called cdn-production , have using s3's ability interpret cname cdn-production.wecora.com avoid cors issues. lastly, using html5 canvas in our application display images.

with said, getting daily reports random users using chrome safari ipads , android reporting images not loading on html5 canvas! cannot duplicate these issues locally when try load saved canvases, send on screen shots shot images missing! it's driving nuts!

the thing can think it's weird cors issue cannot replicate. below our cors , bucket policy. has else seen type of intermittent missing image behavior (possibly access denied, possibly else)

our cors policy follows:

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

and our bucket policy thus:

{ "version": "2012-10-17", "statement": [     {         "sid": "addperm",         "effect": "allow",         "principal": "*",         "action": "s3:getobject",         "resource": "arn:aws:s3:::cdn-production.wecora.com/*"     } ] } 


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

python - How to remove the Xframe Options header in django? -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -