我试图使用谷歌字体'奥斯瓦尔德'。当我把它嵌入到我的网页在recommended way:谷歌字体给出:没有“访问控制允许来源”标题出现在请求的资源
<link href='http://fonts.googleapis.com/css?family=Oswald:400,300,700' rel='stylesheet' type='text/css'>
铬引发以下错误:在谷歌的一部分
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.
这只是一个错误还是我做错了什么?
顺便说一句,你不应该使用'来在HTML标签中分隔参数值。这不是标准的,而是错误的。 – Qualcuno 2014-09-15 21:03:18
@Qualcuno呃,谢谢,但是那是直接从Google Fonts页面复制的。 https://www.google.com/fonts#UsePlace:use/Collection:Oswald – deweydb 2014-09-15 22:42:39