Geolocation doesn’t work on Chrome

If you are facing problems with geolocation on your website running our WordPress Directory theme using Google Chrome browser, it’s because of Google’s decision to allow geolocation functionality only for websites that use SSL certificates. Change is applied in Google Chrome browsers from version 50.

More information you can find in the official source: https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only

Note: As of Chrome 50, the Geolocation API will only work on secure contexts such as HTTPS. If your site is hosted on an non-secure origin (such as HTTP) the requests to get the users. location will no longer function.

Leave a Reply

Your email address will not be published. Required fields are marked *