问题描述
我最近安装了Ngrok,以便在手机上测试我的本地流星应用程序.我通过ngrok的隧道成功访问了流星应用程序.但是,当我尝试使用登录时,会出现以下错误消息:
I recently installed Ngrok in order to test my localhost meteor App on my phone.I am successful in accessing the meteor app via a tunnel by ngrok.However when I try to login using I get this error message:
登录过程显示以下错误消息:
The login process shows the following error message:
400. That’s an error.
Error: redirect_uri_mismatch
Application: AppName
You can email the developer of this application at: [email protected]
The redirect URI in the request, http://localhost:7123/_oauth/google,
does not match the ones authorized for the OAuth client.
更新JavaScript的授权来源和将URI重定向到Ngrok转发地址,没有任何作用.
Updating the Authorized JavaScript origins & redirect URIs to the Ngrok forwarding addresses, doesn't have an effect.
如何正确地将ngrok与Google Oauth结合使用?
How do I correctly use ngrok in conjuction with Google Oauth?
任何帮助将不胜感激
推荐答案
使用ngrok并将根URL"更改为ngrok提供的URL.
Use ngrok and change the Root URL to the one supplied by ngrok.
ROOT_URL=http:XXXXXXXX.ngrok.io meteor
开始流星.
这篇关于如何将ngrok与Google Oauth结合使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!