Google maps API referrer not allowed

前端 未结 9 557
长发绾君心
长发绾君心 2020-12-11 00:43

I am getting the error RefererNotAllowedMapError from some PC\'s when I load a page on my site.

RefererNotAllowedMapError

<
相关标签:
9条回答
  • 2020-12-11 01:00

    Recreating the API key at console.developers.google.com fixed the issue for me.

    0 讨论(0)
  • 2020-12-11 01:00

    This gives error because your Google map API key is not a browser key. Create new key as 'browser key'. This option is available when you create a new key.

    0 讨论(0)
  • 2020-12-11 01:07

    The only thing that worked for me was to create a brand new key w/no restrictions, including no API restrictions.

    This won't be a working solution in the production environment, but it allows us to move ahead w/development.

    0 讨论(0)
  • 2020-12-11 01:08

    Try to add all type of urls like:

    http://stackoverflow.com/*
    
    http://www.stackoverflow.com/*
    
    *.stackoverflow.com/*
    

    Definitely it will work.

    0 讨论(0)
  • 2020-12-11 01:08

    For me to use Places API I had to turn on Maps JavaScript API

    0 讨论(0)
  • 2020-12-11 01:13

    I had a similar issue where I was trying to use the API but had it restricted to Map product only. It generated the same error even though http referrer box had nothing in it (open for all). The problem went away after recreating a new key without any product restriction.

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