网站正在返回" CSI / tbsd _"和" CSI / _tbnd"浏览器中的错误

时间:2013-11-29 10:00:57

标签: google-chrome firefox firebug

我的网站在Firefox和Chrome中都返回了一些奇怪的警告信息和错误。

Firefox会返回以下错误:

GET http://fonts.googleapis.com/css?family=Varela+Round 200 OK 7c8e43d.js (line 18)
13:27:41.46 CSI/tbsd_
13:27:41.48 CSI/_tbnd

Chrome会返回此错误:

XMLHttpRequest cannot load http://fonts.googleapis.com/css?family=Varela+Round. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin is therefore not allowed access. 

我猜这个问题与Google字体API和Access-Control-Allow-Origin有关我如何解决此问题?

2 个答案:

答案 0 :(得分:20)

CSI/tbsd_CSI/_tbnd的日志条目不是错误,而是时间戳,由Google API生成。

可以使用console.timeStamp() function在JavaScript中生成时间戳。

您还可以在google.com上查看这些时间戳日志:

enter image description here

在Firebug中,它们甚至在Net panel timeline

中显示为橄榄线

enter image description here

因此,这些日志消息无需担心。他们只是提供一些信息用于调试目的。

您在Chrome中遇到的错误的实际问题是由跨域请求引起的。因此,出于与同一原始策略相关的安全原因,浏览器会阻止它。在html5rocks.com上有tutorial on "Cross-Origin Resource Sharing" (CORS)

另请参阅stackoverflow上的相关问题:

答案 1 :(得分:2)

我最近也在我的网站上发现了这一点,特别是在我的网页上添加Google DFP(Doubleclick)代码之后。

我在此网站SpanishDict Engineering

上找到了以下说明
  

csi?tbsd是来自Google

的console.time call comng

这似乎在我的网页上下文中有意义。我希望它对你有类似意义吗?

相关问题