Hi @Tejester ,
Welcome to the Google Cloud Community!
This error message usually occurs when you are trying to use Google OAuth client ID with an origin that is not authorized in the Google Cloud Console.
You have to add the URL of origin in the Google Cloud Console.
You must add both "http://localhost" and "http://localhost:<port_number>" to the Authorized JavaScript origins box for local tests or development.
Read the documentation here.
You can also check these cases as you might have the same problem.
let me know if it helped, thanks!
Hello @Marramirez ,
I encounter the same issue, i already added the host domain in the Google Cloud Console as in image below.
Please note in my case the host is an AWS loadbalancer:
http://k8s-default-awsingre-23c3bc0850-121321573.us-east-2.elb.amazonaws.com/
Same problem!! I also hosted my frontend on hosting, and even after adding it's domain in all possible configurations to the both "Authorized redirect urls" and "Authorized JS origins", I still see this error in the console. I even checked "origin" query param in the popup menu, and excluding coded slashes and colon it's the same as the one I added in the console. It looks like my changes in the console wasn't applied, and I have to wait for it, but I'm trying to solve it for couple of days now, and this is clearly not the case
Facing the same issue. As suggested by the documentation: https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid#get_your_google_api_client_id I have added
Referrer-Policy: no-referrer-when-downgrade and it still doesn't work. My observation is that any http javascript origin is not working other than 'localhost'.
@manideepk .... @Xuinger2323
I resolved this issue by using custom login button, as in this link:
User | Count |
---|---|
4 | |
3 | |
1 | |
1 | |
1 |