Google Maps V3 API Key Invalid - but my personal dev key works

后端 未结 11 945
梦谈多话
梦谈多话 2020-12-31 10:24

I\'ve recently been doing development upgrading our maps to v3 and during development I was using my own personal key. Everything was working fine. When it was time to go to

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 10:57

    I think you must check the referrers. The given example on the API console site is:

    Example: *.example.com/*. *One URL or pattern per line.*
    

    Try to include the full referrer names without using wildcards. The wildcard usage seems a bit strange. More people struggle with that, see this post. You can find a description of the possible whitelist configuration on the Google APIs Console Help page.

    (You mentioned that your personal key has the same referrers as your company key. I wonder if this is possible as you could use different keys for the same app in this case.)

提交回复
热议问题