OAuth Redirect URL stuck with `localhost` and consent windows complains on Error 400: redirect_uri_mismatch

OK - Very strange. After reading this post I went back to Google API config and added the localhost redirection URL.

The immediate result was that the OAuth2 dialogue presented me with my Google accounts (!!!). However once I approved the permissions the process breaks because the browser is then trying to redirect to localhost and this obviously doesn’t work.

So I’m one step forward, but still no solution.