Cloudfront Firefox CORS issues

2019-07-23 11:54发布

We host our assets on S3 using CloudFront. Unfortunately once the asset is cached on CF, the CORS origin header does not change for any subsequent requests. That is problematic, because Firefox won't load fonts if the CORS origin is not an exact match.

I'm using the "solution" suggested here adjusting the query for each host.

Unfortunately that would require that I provide a different asset set for every possible origin

with an adjusted query just for it, since I cannot modify the CSS file in the browser.

So I'm back at square one. Anyone solved this problem yet, preferably without an extra dedicated nginx instance that just rewrites the query based on the origin?

0条回答
登录 后发表回答