我正在尝试运行 Google Drive 实时 API 的快速启动代码。
我相信我做的一切都是对的。但我越来越
Error: origin_mismatch
Request Details
openid_connect_request=true
cookie_policy_enforce=false
scope=https://www.googleapis.com/auth/drive.install https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/plus.me
response_type=token
access_type=online
redirect_uri=postmessage
proxy=oauth2relay601571239
origin=http://127.0.0.1
state=811328575|0.818765953
display=page
client_id=XXXXXXXXXX
您没有提供有关应用程序架构的详细信息,因此我只能建议一个一般答案。 OAuth 限制哪些 URL 可以引用它。允许的 URL 列表在 API 控制台中配置:https://code.google.com/apis/console。该 URL 非常繁琐,因此请确保输入的地址与地址栏中显示的完全一致。
截至 2013 年 10 月,您无法使用 localhost。你有2个选择。
- 将 127.0.0.1 = mydevserver.example.com 编辑到 /etc/hosts 中
- 使用 url 缩短器(例如 goo.gl)创建 localhost 的别名
但是,我相信现在可以在
谷歌 API 控制台。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)