Http sites does not detect the location in Chrome - issue

后端 未结 4 1617
萌比男神i
萌比男神i 2020-12-17 20:50

We did notice today an issue in automatic detection of zip code based on the user s location. it worked well in other browsers(edge, IE, Firefox) We had to configure the si

4条回答
  •  情深已故
    2020-12-17 21:10

    I know this isn't a place to debate but this answer probably represent most of programmers that have been implemented geolocation in their applications.

    As stated in other answers "Geolocation API removed from unsecured origins in Chrome 50".
    Well that is a weird move by Google.
    They claim that the changes are due to user privacy.

    This seriously compromises user privacy.

    Google cares about user privacy(laughs).
    I have developed numerous of applications (CMS plugins, standalone application templates) using HTML5 Geolocation API for public use.
    I can't really say to 1000 users to get an SSL certificate.

    From my point of view Google is trying to make internet more expensive and inaccessible for most of independent developers and "superusers".

    Alternatives are:

    • Using geolocation API from Google(limited requests, pay for more)

    • Get a paid service.

    • Get and install an SSL cert

    I tried to load the geolocation script from an HTTPS location on the same server and from public accessed CDNs (github) but the same error appeared.
    Chrome requires an SSL installed on the website too.

提交回复
热议问题