Javascript error in Google Maps API v3 (RefererDeniedMapError)

前端 未结 2 1716
滥情空心
滥情空心 2020-12-16 17:31

We were using Google Maps without key and because of our traffic increase we had to create and add the API key in our JS call. But now, when we are calling the JS we are rec

2条回答
  •  我在风中等你
    2020-12-16 17:58

    I’ve found an URL to your website in google’s thread and I was able to reproduce this problem locally. I’ve just added your host name in hosts file and addressed it to localhost. I’ve got the same error. It’s definitely domain name related problem.

    I was able to make map works only using IP and path to a map page, instead of domain name, like:

       
       
         
           A page where should be a map
         
         
           
         
       
    

    You could try to disable IP to domain name redirection (as you have now), and use your IP in the example above. It’s not a pure solution, but at least you can have a map on your website.

提交回复
热议问题