Google Maps API V3 error: RefererDeniedMapError

后端 未结 2 953
旧时难觅i
旧时难觅i 2020-12-19 14:13

Im facing a problem with Google Maps Javascript API V3. The console log shows:

Google Maps API error: RefererDeniedMapError https://developers.google.

相关标签:
2条回答
  • 2020-12-19 15:17

    You can try the suggestion made in this issue.

    "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."

    You can also check the answer here, if it can help you.

    Then if any of the above solutions doesn't helps you, then I think you should consider the recommendation of MrUpsidown.

    0 讨论(0)
  • 2020-12-19 15:18

    For everyone who will ever land on this question in the future: turns out it was a domain problem. I managed to contact one from the google support service using their forum: https://code.google.com/p/gmaps-api-issues/

    After posting my question there i've been told that the domain i was working on had a past with Google licensing, it had once a commercial plan activated and then someone from the past violated Google's ToS. Sadly there's no way a normal user can check if your domain has violated Google's ToS in the past so i had to wait an answer from the Google Support Team.

    Long story short: if you have a domain banned by Google in the past you are in trouble and have 2 way out: - Change your domain to get a fresh one which is not banned - Pay 10,000$ for a Google Licence for work (not a premium one,just "basic" licence) if you want to work again with API. The price is not fantasy, that's what I've been told by google Support.

    Hope this will help someone to figure out this poorly documented error.

    UPDATE

    The documentation has been updated and clear explanation was added:

    RefererDeniedMapError Your application was blocked for non-compliance with the Google Maps APIs Terms of Service, following several email notifications. To appeal the block and have your implementation reviewed, please complete this form. You will receive a response via email within a few business days.

    https://developers.google.com/maps/documentation/javascript/error-messages

    So, everybody who faces this issue can submit an appeal form from now on.

    0 讨论(0)
提交回复
热议问题