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

Given origin is not allowed for the given client ID (GSI)

I'm having issues with my login with Google page.
When entering and inspecting the page with Chrome, there's an error with GSI_LOGGER and when clicking on "sign-in with Google" the pop up windows appears totally empty (attached image)

My DNS is HTTP, there is no way to change it to HTTPS because our DNS provider does not allow so unless we pay more and there's not enough gadget.
I attach the code, the console after entering the webpage and the config. of OAuth2 in the G-Cloud Console

rjff13_0-1709057843047.png

rjff13_3-1709057981684.png

rjff13_1-1709057875544.png

rjff13_2-1709057905371.png

 

0 2 5,782
2 REPLIES 2

HI @rjff13,

Welcome to the Google Cloud Community!

Have you also included http://localhost in the Authorized JavaScript origins within the Google APIs console?

For testing or development locally, it's necessary to enter http://localhost and http://localhost:<port_number> into the Authorized JavaScript origins field.

For additional details, please consult https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid.

I hope this helps. Thank you.

It was working, and now all of a sudden I am experiencing the same issue. How can I address this issue?