[Resolved] Google maps API with referer restrictions
This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is having problems using a Maps API key with URL referrer restrictions.
Solution:
This seems to affect a fairly small percentage of our users for reasons that are not entirely known.
In Toolset Maps 1.5 we have added support for a second API key for server requests. Please update the Toolset Maps plugin.
50% of people find this useful.
This support ticket is created 6 years, 6 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I don't think it is expected/intended to specify the protocol when adding the URL referrer restrictions, which should be as generic as possible, e.g. *.wuuzilla.at/*
If you find that still does not work then, currently, there is no alternative but to not use any referrer restrictions.
We are working on a solution to this.
Our experience with the API for server requests is that they appear to be handled inconsistently, or, at least, from our perspective they are, as we are unable to identify the reason it does not work in a few isolated cases but does in 99% of them.
So we are going to add a two-key solution for such cases, with a key that includes URL referrer restrictions for the client-based requests we make, and an unrestricted key for the server-based requests we make (where the key is not exposed).
I don't have an ETA for it but it is currently in development.
I am having this problem, also. It has worked fine in the past. Not sure when it stopped working. I tried making a new API key and also tried the suggestion above to not have https:// in the referrer. Still not working.
Any word on when an update will come out?