Im trying to use google maps on a local server. File is located at localhost:9000/map/index.html.
My google maps api key has absolutely no restrictions. It works when i simply open index.html without a server but i need a server as its opening a file to get lat and lon data to display.
Im using a simple python server.
Ive tried setting up the restrictions for the api key and set up referers like http://localhost:9000/* http://localhost/* http://localhost/map/index.html localhost .localhost/ and nothings worked. Ive restarted the server after making these changes to the restrictions as well.
jamie smith is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.