Table to use OAuth2 on Google when deploying to

Hi all. I use Google API and OAuth2 successfully running app from my local machine. When deploying to it disconnects, probably due to unable to obtain authorisation. I assume it is something to do with the URIs. Any help would be appreciated.