I have created an api key for google maps. I can validate the key only if it is not restricted. When I apply a domain restriction an error pops up in the general setting validation.
I have enclosed a picture of restricted referrer screen on google. Is there any problems with how I have done the referrer?
Hi again Shane
It is a pity that you can only use google maps with an unrestricted api key. If a hacker attack occurs or the key will somehow get into the hands of evil people, they can use it on their sites (with my credit card!).
It feels like it is not only me who has this problem.
It would be nice if Toolset the company can contact Google to see if there is a solution to this problem.
Sorry I couldn't provide better assistance with this one but we can't do much if your URL doesn't validate with the restricted API.
Perhaps what you can do is to contact your host and ask them to see how best they can assist you with this. Perhaps they will know the correct URL to use.
Thank you for sharing, however can you send me the exact format of the URL that you used that worked?
This is quite a common issue with users and its usually due to the URL that they are using.
To respond to your question about the secondary API, we have a response in our documentation below.
"If Google Maps API key is restricted by domain, that may not work for users with multiple domains or subdomains. To solve this, you can enter a second API key for Google Maps, in the Toolset settings. When added, this second key is used exclusively for server-side requests. This means it is never exposed in HTML and does not need restrictions. If you want extra security, you can restrict it, but only by IP addresses, not by domains."