Skip Navigation

[Resolved] Google Maps JavaScript API error: RefererNotAllowedMapError

This support ticket is created 4 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 8 replies, has 2 voices.

Last updated by maikd 4 years, 7 months ago.

Assisted by: Waqar.

Author
Posts
#1609179

Tell us what you are trying to do?
I Will show a Map with the Marker and autofocus of the Custom Field Adress.
But: Your site URL to be authorized: hidden link

Is there any documentation that you are following?
Yes, I have read all things, and that you do all make a "hidden link" and also for images ... Isn't very helpful.

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link

#1610253

Hi,

Welcome to Toolset support and I'd be happy to assist.

The "RefererNotAllowedMapError" error suggests that "Application restrictions" is enabled in your Google Maps API key settings with "HTTP referrers (web sites)" option.
hidden link

Can you please make sure that your website's domain is added in there in a way that allows all sub-domains and paths?
( example: *.mdw-web.de/* )

You'll find some useful suggestions on troubleshooting "HTTP referrers" restriction in this thread too:
https://stackoverflow.com/questions/35288250/google-maps-javascript-api-referernotallowedmaperror

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1610273
gm-error.jpg

I have only limitation on IP-Adress.

#1610645

Hi,

Thanks for writing back.

For web APIs like the one you're using, it is recommended to use "HTTP referrers (web sites)" restriction.
( since the website's visitors will be visiting from different IP Addresses )

The "IP addresses" restriction is useful for web service APIs where the request always originates from specific servers.

Ref: hidden link

Please change the restriction type and then allow it to work with the correct domain/sub-domain and then test it again.

regards,
Waqar

#1611283

Hi Waqar,

thanks now it works fine. May Thanks.
But my Map still shows the Ocean. And not my Adress. How can i fix this ?
The Adress comes from an Dynamic Source Custom Field.
Regardful.
Maik

#1611285

My issue is resolved now. Thank you!

#1611287

After Adding the right syntax in domain in HTTP referrers in Google Api Protection

*.beispiel.de/*

I added the Card new in my Content Template and now it works fine.

Many thanks.

#1612365

Hi Maik,

You're very welcome and glad that it is working now.

Feel free to mark this ticket as resolved and for a new question/concern, please start a new one.

regards,
Waqar

#1612497

My issue is fully resolved now. Thank you very much!