RefererNotAllowedMapError

You are here : Home / RefererNotAllowedMapError

When I try to create a location I get an error message (“This page didn’t load Google Maps correctly.”) in the box where the map should appear and the console says:

Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: http://fireweed-photography.dev/wp-admin/admin.php?page=wpgmp_form_location&doaction=edit&location_id=1

On the Google API Manager Credentials I restricted the key to HTTP referrers using *.fireweed-photography.dev/* which looks like the correct way to do it.

With no restrictions on the API key adding the location works but using the recommended site restriction it does not. Can you assist?

Public
Hello,
That mean your referrer is not correct and using wrong api key. Are you using any old api key? Please create a referrer like this *fireweed-photography.dev/*. Please send me your page url where map is located so i can check also.

Thanks
#1
Public
Divyang,
Thanks for your help. Your suggestion about creating the referrer as "*site/*" was correct. When I had it as "*.site/*", that is, with a period after the initial wildcard it did not work, resulting in the error message. Interestingly, both your "Google Map API Troubleshooting" tip ("3. Check HTTP referrers. It must be *.yourwebsite.com/*" ) and the pattern shown by Google have a period after the initial wildcard and cause the error. Strange.

Fixed now.
#2
Public
Thats nice :) your has been resolved. If you face any issue in plugin please let us know.

Thanks
#3

This question is now closed

Customize Product according to your requirements?

We will be glad to discuss any of your needs related to our wordpress plugins . if any of functionality you'd like to see in products, you can reach us by via email hello@flippercode.com.