当从本地主机发送请求时,Google Oauth2 redirect_uri_mismatch [英] Google Oauth2 redirect_uri_mismatch when send request from localhost

查看:108
本文介绍了当从本地主机发送请求时,Google Oauth2 redirect_uri_mismatch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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


$ b

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

JAVASCRIPT ORIGINS: http:// localhost



当从本地主机发送请求时,我们获得400错误,即
$ b $ p错误:redirect_uri_mismatch

任何想法..?

解决方案

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

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

I use Google OAuth2 for my codeigniter application and i send request using the HybridIgniter.

REDIRECT URIS : http://localhost/college-rating-system/hauth/endpoint.

JAVASCRIPT ORIGINS : http://localhost

When send request from localhost then we get 400 error that is,

Error : redirect_uri_mismatch

Any idea ..?

解决方案

Check the full error it will tell you the URL its coming from.

The redirect URI must match exactly what you have placed in the Google developer console.

这篇关于当从本地主机发送请求时,Google Oauth2 redirect_uri_mismatch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆