• Resolved pipoulito

    (@pipoulito)



    Hi,

    I hace created my API key that i put in API browser field but what is the other API server key ?
    thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Hi,

    Thank you for interesting to use this plugin. This plugin need 2 different API Keys because it will be used in 2 different purpose. The Browser API is used when you setting the Admin Area to get your store location info. And the Server API is used to calculate the distance for customer address and your store location. As Google does not allow you to specify both an HTTP referrer restriction (for the admin map usage) and an IP address restriction (for the server-side distance matrix calculation) so need to split it in 2 different API keys. The version 1.4 and earlier is just using 1 API Key, which mean that the API Key cannot be restricted at any type. And many users complaining about security as the API Key cannot be restricted.

    I hope this the answer of your question.

    Sofyan

    Thnanks for your answer.
    So i have created 2 differenet API key with HTTP referrer. But it seems it does not accept the second as my server key.

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Yeah, you use wrong restriction type. Please read again my message above.

    sorry i don’t understand how to “split in 2 different keys”

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Create 2 API Key with different restriction type each. HTTP referrer restriction and IP address restriction

    ok that’s what i have done but i get this:
    Server API Key Error: API Response Error: REQUEST_DENIED – API keys with referer restrictions cannot be used with this API.

    wait please i try something

    i get this :
    Server API Key Error: API Response Error: REQUEST_DENIED – This IP, site or mobile application is not authorized to use this API key

    Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Okay that mean that your site IP is not whitelisted in the Google API console. Please contact your hosting provider to get the correct server IP address and then add it to Google API console.

    ok thanks

    It is ok if put no refere for server key !thanks

    • This reply was modified 1 week, 5 days ago by  .
Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.