How to give referrer url for localhost in google map api?
<p>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.</p>

<p>It works fine except when I try to give referrer url for localhost it doesn't work. 
I am getting error "<strong>RefererNotAllowedMapError</strong>";</p>



<p>I don't understand how to give url for edit because every time the url of edit changes. Please share solutions if there is a way to allow the API to be accessed from localhost.</p>