从本地主机发送请求时,Google Oauth2 redirect_uri_mismatch

Mit*_*iya 6 google-api oauth-2.0

我将 Google OAuth2 用于我的 codeigniter 应用程序,并使用 HybridIgniter 发送请求。

重定向 URIS:http://localhost/college-rating-system/hauth/endpoint

JAVASCRIPT 来源:http://localhost

当从本地主机发送请求时,我们得到 400 错误,即,

错误:redirect_uri_mismatch

任何的想法 ..?

DaI*_*mTo 9

检查完整的错误,它会告诉您它来自的 URL。

重定向 URI 必须与您在 Google 开发者控制台中放置的内容完全匹配。