在 CloudFront 上验证 cloud.typography 字体的字体位置时,出现 500 错误

When validating font location on CloudFront for cloud.typography fonts I get a 500 error

我们在我们的网站上使用了一些 cloud.typography.com 网络字体(智能字体),而不是将它们托管在我们的服务器上,我们想使用云端。

我们的云端分布https://static.mywebsite.com points to an Amazon s3 bucket, https://mywebsite.s3.amazonaws.com/

我在 https://static.mywebsite.com/fonts on the cloud.typography website and then downloaded and uploaded them to the bucket. I then confirmed that I can access individual files e.g. https://static.mywebsite.com/fonts/501111/fontfile.woff 位置生成了字体,没问题。

接下来我检查了存储桶的 CORS 定义:

<CORSConfiguration> 
<CORSRule>          
<AllowedOrigin>*</AllowedOrigin>         
<AllowedMethod>GET</AllowedMethod>         
<MaxAgeSeconds>3000</MaxAgeSeconds>         
<AllowedHeader>Authorization</AllowedHeader>    
</CORSRule>
</CORSConfiguration>

然后在 Cloudfront 中我更改了我的 'behaviours' 以将 Origin header 列入白名单并保存它。

当我在 cloud.typography 尝试确认安装时,我得到了这个:

Server Error at static.mywebsite.com Your webserver responded with “Error 500 (Internal Server Error).” Try reconfirming the installation, and if the problem persists, contact whomever at your organization administers your web server.

知道为什么以及我需要做什么才能使它正常工作吗?我想知道我是否犯了错误,如果这根本不可能,或者他们的 cloud.typography 网站是否无法处理此配置?

我已经与他们通话,但他们还没有回复。

原来答案是等一个小时:/

在没有任何配置更改的情况下,我在一个小时后再次尝试,published/validated 没问题。