How to give referrer url for localhost in google map api?

前端 未结 4 921
太阳男子
太阳男子 2021-02-07 00:14

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

4条回答
  •  太阳男子
    2021-02-07 01:05

    http://localhost wasn't enough for me, but adding an asterisk worked: http://localhost/*

提交回复
热议问题