我最近安裝了Ngrok爲了在我的手機上測試我的localhost流星應用程序。 我成功通過ngrok通過隧道訪問流星應用程序。 然而,當我嘗試使用我收到此錯誤信息登錄:如何將ngrok與Google Oauth結合使用?
登錄過程顯示了以下錯誤消息:
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轉發地址,沒有按」沒有效果。
如何正確使用與Google Oauth相結合的ngrok?
任何幫助,將不勝感激
您是否嘗試使用http/https?你確定重定向URI是完整的嗎?*即*'http:// localhost:7123/_oauth/google'(最終沒有正斜槓)? –
@ Max G.是的,我嘗試了兩種。讓我知道他們是否適合你... – SirBT
這是我在我的重定向上設置的,它適用於我。出於好奇,爲什麼你將端口設置爲7123而不是默認的3000?使用ngrok時,你是否讓sur來放xxx.ngrok.io:7123? –