首页 文章

Google Apps脚本 - Google Site中的origin_mismatch错误

提问于
浏览
0

我知道有一个非常类似的情况here . 但这假设您正在开发上传到您自己的服务器域的html文件夹上的Web应用程序 . How do I need to set up the Javascript origins in the API project console when I'm working on a Google Site?

enter image description here

我的Google协作平台网址类似于 https://sites.google.com/a/domain-name.com/site-name/page-name . 我可以't paste that URL since it says that the origin domain can' t包含像 http://example.com/subdir 这样的路径

这是我得到的错误:

那是一个错误 . 错误:origin_mismatch应用程序:自定义表单您可以通过以下方式向此应用程序的开发人员发送电子邮件:my-email@my-domain.com请求详细信息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

this是我正在使用的示例代码

1 回答

  • 0

    浪费了很多时间后,将 ss_domain= 之后的URL添加到授权的JavaScript源中对我有用 .

    • 在错误窗口中单击“请求详细信息”,查找 ss_domain 并将该uri复制到JavaScript Origins中 .

相关问题