Google OAuth2: Redirect URI mismatch even after copying the exact path, due to the protocol ambiguity
15:10 06 Apr 2025

I was integrating Google OAuth2 into my app and kept getting this error:

"Error 400: redirect_uri_mismatch"

I copied the exact URL from my browser’s search bar and pasted it into both the Authorized redirect URI and the origin field on the Google Cloud Console, Credentials.

Still, I got the error. 😕

Things I Tried:

  • Checked the Network tab—everything looked fine.

  • Double-checked the exact redirect URI.

  • Clicked on error detail to inspect further.

oauth-2.0 google-oauth google-developers-console