我使用Google OAuth2作为我的codeigniter应用程序,并使用HybridIgniter发送请求 .
REDIRECT URIS:http://localhost/college-rating-system/hauth/endpoint .
JAVASCRIPT ORIGINS:http://localhost
当从localhost发送请求时,我们得到400错误,即
错误:redirect_uri_mismatch
任何的想法 ..?
我使用Google OAuth2作为我的codeigniter应用程序,并使用HybridIgniter发送请求 .
REDIRECT URIS:http://localhost/college-rating-system/hauth/endpoint .
JAVASCRIPT ORIGINS:http://localhost
当从localhost发送请求时,我们得到400错误,即
错误:redirect_uri_mismatch
任何的想法 ..?
2 回答
检查完整的错误,它将告诉您来自的URL .
重定向URI必须与您在Google开发者控制台中放置的内容完全匹配 .
重定向URI
http://localhost:8000/这 / 在最后解决了我的问题JavaScript起源
http://localhost:8000
NOTE: localhost and 127.0.0.1 conflicts can create problems for you sometime