0

I have implemented the Sign in with google option in my web app. (JSP page, Tomcat server, localhost:8080)

Google sign-in works fine while running it in localhost, but the sign-in option is not working while running the web app using IP address, it results in "Access blocked: Sign in with google’s request is invalid". Error 400: redirect_uri_mismatch.

So I thought I need to add the IP address in the developer google cloud console as an authorized origin, But it won't allow IP as an authorized javascript origin.

How can I add my IP address(172.22....) as an authorised javascript origin, So that sign-in with google option works? clich here to more details

Basically, I'm trying http://172.22.... instead of http://localhost:8080

Vimal M
  • 13
  • 1
  • 4