我在子域上从 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.