【问题标题】:Subdomain blocked loading fonts CORS with nginx子域阻止使用 nginx 加载字体 CORS
【发布时间】:2014-11-10 14:22:31
【问题描述】:

我在子域上从 CDN Amazon CloudFlare 请求字体时遇到此错误,问题仅出在 Google Chrome 上,显然它适用于 Safari。

Font from origin 'http://static.wagency.co' has been blocked from loading by Cross-Origin Resource 

Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://wagency.co' is therefore not allowed access. (index):1
Font from origin 'http://static.wagency.co' has been blocked from loading by Cross-Origin Resource Sharing policy: The 'Access-Control-Allow-Origin' header contains the invalid value '*.wagency.co'. Origin 'http://wagency.co' is therefore not allowed access. (index):1
7Font from origin 'http://static.wagency.co' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://wagency.co' is therefore not allowed access. 

【问题讨论】:

    标签: nginx cors font-face cloudflare w3-total-cache


    【解决方案1】:

    似乎是特定于 Chrome 的。在 Google 产品论坛中看到了这些 tips 关于类似问题的信息。

    【讨论】:

      猜你喜欢
      • 2017-09-10
      • 1970-01-01
      • 2015-12-07
      • 2020-06-29
      • 2014-11-18
      • 2011-07-01
      • 2019-12-19
      • 2018-12-10
      相关资源
      最近更新 更多