相关疑难解决方法(0)

Google字体提供:请求的资源上没有"Access-Control-Allow-Origin"标头

我正在尝试使用谷歌字体'Oswald'.当我以推荐的方式将其嵌入我的页面时:

<link href='http://fonts.googleapis.com/css?family=Oswald:400,300,700' rel='stylesheet' type='text/css'>
Run Code Online (Sandbox Code Playgroud)

Chrome会引发以下错误:

XMLHttpRequest cannot load http://fonts.googleapis.com/css?family=Oswald:400,300,700. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://<<redacted>>' is therefore not allowed access. 
Run Code Online (Sandbox Code Playgroud)

这只是谷歌的一个错误,还是我做错了什么?

fonts google-font-api

8
推荐指数
1
解决办法
6105
查看次数

标签 统计

fonts ×1

google-font-api ×1