Tag: 谷歌驱动 SDK

Google云端硬盘网站上的Access-Control-Allow-Origin错误

我正在使用Google云端硬盘( https://googledrive.com/host/ .. )为自助服务终端托管一个非常简单的网站。 在这个网站上,我使用jQuery load()函数来嵌入Google Drive文档中的一些内容( https://docs.google.com/document/ .. )。 这一直很有效……直到我今天刚检查过它。 该站点不再显示文档中的内容,现在在控制台中抛出错误: XMLHttpRequest cannot load https://docs.google.com/document/d/1X1ZEtrGm8tnAvLIuzF4ch2dltVjIwQJl3Zn3bOLJS4s/pub. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://googledrive.com’ is therefore not allowed access. 任何人都可以请问为什么这个工作……现在它不是……我怎么能让它再次运作? 谢谢您的帮助。