Cross-Origin request warning for google fonts

前端 未结 4 2151
生来不讨喜
生来不讨喜 2021-02-19 00:12

I am using Google Webfonts on my website. In the console on Chrome I get the following warning:

Blink is considering rejecting non spec-compliant cross-or

4条回答
  •  温柔的废话
    2021-02-19 00:45

    CORS header is not being served under certain circumstances. Fonts are failing to set this header randomly.

    This is a Google bug and you can't fix this as they are not serving the header. I recommend to cease using this buggy Google CDN service and download fonts instead and serve them from your web server.

提交回复
热议问题