我最近安装了 Ngrok,以便在手机上测试我的本地主机 meteor 应用程序。 我成功通过 ngrok 的隧道访问 meteor 应用程序。 但是,当我尝试使用登录时,我收到此错误消息:
登录过程显示以下错误消息:
400. That’s an error.
Error: redirect_uri_mismatch
Application: AppName
You can email the developer of this application at: my@emailadress.com
The redirect URI in the request, http://localhost:7123/_oauth/google,
does not match the ones authorized for the OAuth client.
更新授权的 JavaScript 源并将 URI 重定向到 Ngrok 转发地址,没有效果。
如何正确地将 ngrok 与 Google Oauth 结合使用?
任何帮助将不胜感激
最佳答案
使用 ngrok 并将根 URL 更改为 ngrok 提供的 URL。
ROOT_URL=http:XXXXXXXX.ngrok.io Meteor
启动 Meteor。
关于meteor - 如何将 ngrok 与 Google Oauth 结合使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39860152/