Google Apps脚本 - Google Site中的origin_mismatch错误
我知道有一个非常类似here。但是,这假设您正在开发一个上传到您自己的服务器域的HTML应用程序。 当我在Google网站上工作时,如何设置API project console中的Javascript起源?Google Apps脚本 - Google Site中的origin_mismatch错误
我的谷歌网站的URL看起来像https://sites.google.com/a/domain-name.com/site-name/page-name。
:因为它说,起源域不能containt像 http://example.com/subdir
- That’s an error.
Error: origin_mismatch
Application: Custom form
You can email the developer of this application at: [email protected]
Request Details immediate=false response_type=token scope= https://www.googleapis.com/auth/drive.readonly redirect_uri=postmessage proxy=oauth2relay945850002 state=845063282|0.3789568949 origin= https://n-qaqvqexe4f52wy3jge4j7oquqn5qtfw3gn4sumq-script.googleusercontent.com include_granted_scopes=true client_id=498878908299-opvf61qsrpr6en5kvh74esqbmii1nc7u.apps.googleusercontent.com authuser=0
这里的路径是,我得到的错误,我不能粘贴URL
而且this的是,我使用
浪费很多小时后,示例代码,后ss_domain=
到授权的JavaScript源为我工作添加URL。
- 从错误窗口中单击请求详细信息,查找
ss_domain
并将该uri复制到JavaScript起源中。
你有没有试过https://sites.google.com?在JavaScript的起源? – DaImTo
是的,没有工作.. – maeq
该文档指定你应该“创建新的键”类型的“浏览器键”,但你创建的是“客户端ID”。客户端ID基于回调或起源而工作,而密钥在引用者上工作。 – abraham