Google Calendar JavaScript API引发错误

时间:2011-04-12 23:38:58

标签: javascript api google-calendar-api

第一件事首先,这是我网站的链接: boba.dyndns-server.com/Test/index.html

点击“提交课程”后,将“从忽略”下拉到“指定”,然后单击“生成”。它抛出错误

Uncaught Error: An image of the same domain is required on this page for authenticated reads and all writes.

此错误从此file的第215行引发 任何人都可以向我解释是什么原因引起的吗?

1 个答案:

答案 0 :(得分:3)

您的网页上必须有图片。

Source

"It means that your page needs to have at least one image (<img 
src="..." />) that's hosted off of your domain. It doesn't matter 
what, there just needs to be at least one image. 
It's a strange requirement, but that's part of the mechanism we use to 
bypass the same-origin policy. 
-- 
Trevor Johns 
"