小编Ant*_*ony的帖子

如何配置Amazon S3 CORS以便Firefox将加载远程托管的webfonts?

我一直在尝试将Amazon S3设置为webfont文件主机,以便在Tumblr上使用webfonts.

亚马逊建议的CORS配置适用于除Firefox之外的所有内容,这与亚马逊在S3中启用此新CORS功能之前的情况完全相同.

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
    <AllowedOrigin>http://fonttester.tumblr.com/</AllowedOrigin>
    <AllowedMethod>GET</AllowedMethod>
    <MaxAgeSeconds>3000</MaxAgeSeconds>
    <AllowedHeader>Authorization</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Run Code Online (Sandbox Code Playgroud)

我应该使用不同的配置吗?

firefox amazon-s3 webfonts cors

8
推荐指数
1
解决办法
3064
查看次数

标签 统计

amazon-s3 ×1

cors ×1

firefox ×1

webfonts ×1