Google Map error: InvalidKeyOrUnauthorizedURLMapError

前端 未结 10 577
[愿得一人]
[愿得一人] 2020-12-01 18:04

I am developing in JavaScript/HTML/CSS an app that uses Google Maps. I am getting the following alert dialog box:

\"This page was unable to display a Google Maps ele

10条回答
  •  醉话见心
    2020-12-01 18:48

    After a lot of trial and error this worked for me (by Eduardo. Thanks !)

    The URL that needs to be authorized is the one in the Referrer header for the requests the browser sends to Google to load the API.

    Under Browser Credentials > REFERERS

    Add these

    1. .example.org/
    2. www.example.org/*
    3. http://www.example.org
    4. http://example.org

提交回复
热议问题