amazon s3 - AWS S3 cross-origin request failed on ie9 -
i'm trying make web font , have deployed on aws s3.
works fine in browsers except ie9 says cross-origin request failed when trying load woff file.
i've read lots , lots on many forums people having issue, i've not been able find fix.
i think it's cors setup on s3 not sending correct data or ie9?
(works in firefox, chrome, ie7,8, etc)
the suggestions i've seen fix problem are, spinning ec2 instance , making web host fonts (complete overkill!) , other 1 naming css file .php , setting headers in php (but daft).
anyone know how (if @ possible) fix issue?
thanks
edit
my cors config:
<?xml version="1.0" encoding="utf-8"?> <corsconfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <corsrule> <allowedorigin>*</allowedorigin> <allowedmethod>get</allowedmethod> <allowedheader>*</allowedheader> </corsrule> </corsconfiguration>
i've done it. basically, can follow steps edit s3 bucket permissions. if need further help, leave comment bellow.
1) sign in aws management console , open amazon s3 console @ https://console.aws.amazon.com/s3/
2) in buckets list, open bucket properties want view , click "add cors configuration"
3) write rules willing add in between tags <corsconfiguration>
<corsconfiguration> <corsrule> <allowedorigin>*</allowedorigin> <allowedmethod>get</allowedmethod> </corsrule> </corsconfiguration>
you can learn more rules at: http://docs.aws.amazon.com/amazons3/latest/dev/cors.html
Comments
Post a Comment