I'm trying to implement Google sign-in for an ASP.Net enterprise app that can be installed locally on a Windows/Mac PC or can be hosted on the cloud.
If installed locally, when user launches the app, it runs in a web browser with the following URL:
localhost/myappname
If cloud hosted,
IP address/myappname
Since access origin can vary based on the deployment location of the app, how to specify Access origin URL and redirect URL in Google Developer console? Access-Control-Allow-Origin error will occur if the address from which the Google sign-in is initiated is not configured in the Google Developer Console. I would like to know how Google sign-in should be implemented in such scenarios.