I am using google map geocode api for getting city,country,and state from zip code. I have restricted the API key to only respond to requests from allowed URLs.
It works
http://localhost wasn't enough for me, but adding an asterisk worked: http://localhost/*
http://localhost
http://localhost/*