Vendor Location Api Key With Restriction Problem

Hi,

Currently, you can use Vendor location with 1 api but with no restriction. If you put restriction, it will not work. So it need to have server side api and browser api, but we only have 1 api field admin backend.

Map javascript can only use http referrer, AND geocoding, place api... can only use IP address. We need both for vendor location to work.

In product mode, you cannot use api without restriction because others might use your API

So how do we fix this problem to to use api key with restriction?

Can anyone show me and might be others?

Im really appreciated and Thank you so much

Maps JavaScript API can be restricted by IP too.

But then I get about 480 "404" errors...

Maps JavaScript API can be restricted by IP too.

But then I get about 480 "404" errors...

Hi,

You cannot use IP address restriction for Google map javascript as Google said, that is why you get 4xx error. Check this page from google

https://developers.google.com/maps/api-key-best-practices#api_key_table

OK, thanks.

In both cases - w/ or w/o restrictions, vendor's location is not saved in the appropriate field, and there is a message in the console saying that api is not authorized. But it is.