当从本地主机发送请求时,Google Oauth2 redirect_uri_mismatch [英] Google Oauth2 redirect_uri_mismatch when send request from localhost
问题描述
我为我的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屋!