[openstreetmap/openstreetmap-website] Geolocation fails when not using https on Chrome (#1493)

Joseph Morris notifications at github.com
Tue Mar 21 17:47:46 UTC 2017


With Chrome for Windows and Android (probably macOS/linux too; I don't have one handy), if the user clicks on the geolocation button ("show my location") while not using https, then the browser throws an error as seen below -- "only secure origins are allowed". Going into the browser bar and making it https fixes the issue, but an unsophisticated user will not know to do that. Consider making https mandatory, or if overhead does not permit that, perhaps code some javascript to catch the error and provide a more useful message; or forward to https when geolocation is clicked.

![osm-https-error](https://cloud.githubusercontent.com/assets/4050617/24161556/fe61558c-0e21-11e7-9d69-eb97ab7c8da4.jpg)


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1493
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170321/c9e5ecba/attachment.html>


More information about the rails-dev mailing list