Does Amazon S3 need time to update CORS settings? How long?

后端 未结 4 1140
余生分开走
余生分开走 2021-01-02 02:12

Recently I enabled Amazon S3 + CloudFront to serve as CDN for my rails application. In order to use font assets and display them in Firefox or IE, I have to enable CORS on m

4条回答
  •  臣服心动
    2021-01-02 02:25

    Try these:

    1. Try to scope-down the domain names you want to allow access to. S3 doesn't like *.
    2. CloudFront + S3 doesn't handle the CORS configuration correctly out of the box. A kludge is to append a query string containing the name of the referring domain, and explicitly enable support for query strings in your CloudFront distribution settings.

提交回复
热议问题