Utilizing the Google signin Javascript API with the gapi-signin-button
on a webapp. The app is being served by a gulp server, binding to 0.0.0.0
. Everything works fine during local development, but encountering issues when accessing the page through a public IP on a remote server. The error message received during the signin process is as follows:
Error: invalid_request
Permission denied to generate login hint for target domain.
Both localhost:PORT
and SERVER_IP:PORT
are included in my Authorized JavaScript origins. Suggestions from other Stack Overflow responses recommend binding to localhost
instead of using other interfaces, but that solution doesn't work here since accessing the server remotely would then be impossible. Any guidance on how to proceed?