Wednesday, June 5, 2024
 Popular · Latest · Hot · Upcoming
84
rated 0 times [  90] [ 6]  / answers: 1 / hits: 35092  / 8 Years ago, fri, june 24, 2016, 12:00:00

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 fine except when I try to give referrer url for localhost it doesn't work.
I am getting error RefererNotAllowedMapError;





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.


More From » google-maps

 Answers
11

I had that problem today, just typed localhost on the credentials part and it worked.
enter


[#61658] Wednesday, June 22, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
julissaimana

Total Points: 593
Total Questions: 108
Total Answers: 112

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago
;