I recently moved the project to another server. The domain name is the same, he just pointed to the new server. The url is exactly the same. Since the project is moving, I get this error when the application tries to connect to the googles OAuth api.
{ "name": "Error calling GET https:\/\/www.googleapis.com\/analytics\/v3\/management\/accounts\/~all\/webproperties\/~all\/profiles?key=AIzaSyBKUP8JriiOnFnbJm_QYt_bHTMuHf-ilAI: (403) There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.", "url": "\/analytics\/statistics.json" }
The obvious reason (based on the error message) is that I did not add the new server IP address to the list of allowed IP addresses in the devlopers console under the API and auth-> Credentials-> Key for server applications.
I have added IP. I checked that the domain had spread by checking it, and a new IP address appeared, which was entered into the console, so I'm struggling to understand why it does not work.
Has anyone come across this before than can help me solve it?
source share