【发布时间】:2019-07-23 23:58:29
【问题描述】:
我相信昨天我的网站的自定义字体停止运行。现在,字体仅在 Safari 上显示,而 Chrome 和 Firefox 将访问控制允许原始错误发送到各自的控制台。 铬错误:
Access to font at 'https://blockheaddevdevdev--grify.repl.co/styles/font/wide.ttf' from origin 'https://blockheaddevdevdev.grify.repl.co' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Firefox 错误:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://blockheaddevdevdev--grify.repl.co/styles/font/wide.ttf. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).[Learn More]
Here is the font I am using Here is the CSS that applies the fonts to the page Here is the page that should run these custom fonts
【问题讨论】:
标签: css google-chrome firefox fonts