Go to https://console.cloud.google.com/apis/ then, on the credentials section, select your project and update the Authorized Javascript Origins and Authorized redirect URIs with your homepage link.
Note: The localhost URI may change when rebuilding the app, so be sure to update the URIs in the Google Cloud API console.