问题
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 ..?
回答1:
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.
回答2:
Redirect URIs
http://localhost:8000/ this / at end solve my problem JavaScript origins
http://localhost:8000
NOTE: localhost and 127.0.0.1 conflicts can create problems for you sometime
来源:https://stackoverflow.com/questions/28431545/google-oauth2-redirect-uri-mismatch-when-send-request-from-localhost