Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Sign in with google ends with [GSI_LOGGER]: The given origin is not allowed for the given client ID.

I'm trying to add sign-in with google to my application. I got it working locally based on official documentation, but I'm struggling with enabling it on real host on internet. I put this domain address in API Services -> Credentials -> API Keys -> Authorised JavaScript origins

 

When popup window appear Javascript generates request:  GET

GET
https://accounts.google.com/gsi/select?client_id=1014735478743-it1gbsm9iakjanpoj3p9kvvi8b61875q.apps...

 

And it ends up with error "[GSI_LOGGER]: The given origin is not allowed for the given client ID."

My configuration looks like this:

2023-04-23 - google signIn.png

 

I got it working on localhost but what is wrong here?

 

1 18 16.4K