I can not enable my server's IP in the google maps API


I have problems using javascript and embed the Google Maps API. In the part of the restriction I would like to place only the IP where my web pages are hosted. I do not want to restrict it by domain since I will use the system that I made for several pages and each time I would increase this number. I find it tedious to be entering domain by domain so I will restrict it to only IP but when I use the option: IP addresses (web servers, cron tasks, etc.) and I place the IP of my server this happens when I load the map


Google Maps Platform rejected your request. This IP, site or mobile   application is not authorized to use this API key. Request received   from IP address 186.XX.XX.XX, with referer: link

It turns out that the IP that shows me the error is my IP of my team and not the one that authorizes (that of my server). This is the code you use to show for example the Embed Map API

  frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?key=XXXXXXX&q=4.7110313703600255,-74.07424018575824&zoom=17&maptype=roadmap" allowfullscreen>

Is there no way I can not get this error, and take the IP of my server and not my team's?

Thank you very much

asked by Andrés Oso 15.11.2018 в 02:12

0 answers