简体   繁体   中英

Is it possible to add an IP address to the Google Console's list of allowed javascript authorised origins?

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. "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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM