Ruby on rails FontAwsome字体在internet explorer 8/9/10 amazon s3中无法使用
看起来FontAwesome没有在AmazonS3上工作。我发现Internet Explorer的错误如下Ruby on rails FontAwsome字体在internet explorer 8/9/10 amazon s3中无法使用,ruby-on-rails,internet-explorer,amazon-web-services,amazon-s3,font-awesome,Ruby On Rails,Internet Explorer,Amazon Web Services,Amazon S3,Font Awesome,看起来FontAwesome没有在AmazonS3上工作。我发现Internet Explorer的错误如下 @font-face failed cross-origin request. Resource access is restricted. 我的COR配置如下: <?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-0
@font-face failed cross-origin request. Resource access is restricted.
我的COR配置如下:
<?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>Content-*</AllowedHeader>
<AllowedHeader>Host</AllowedHeader>
</CORSRule>
</CORSConfiguration>
*
得到
3000
内容-*
主办
这现在似乎适用于Firefox(它在CORS配置之前也有相同的错误),但仍然不适用于IE
我以为这是缓存问题,但这是2天前完成的
是否需要进行任何其他配置来修复此错误并在IE上显示图标?您是否尝试将
AllowedOrigin
设置为http://*.yourdomain.com
哦,你没有说你在使用CloudFront,但是如果你是,S3+CloudFront在一起使用CORS支持时有一些主要问题。@Bubbles你会把这些放在CORS配置下的什么位置?对不起,那是我的错误评论-我想我混淆了名称。我想我链接的内容相当于
AllowedOrigin
规则。您是否尝试过清除IE缓存?嗨,我没有使用Cloudfront。只是S3,但我刚刚把我的域名放在上面并保存了。所以我想说等一会儿,直到缓存刷新。。。