I had an webapp that uses Geolocation, but, when url has ip, the Geolocation doesn't work.
I catch this error: PositionError {code: 1, message: "Only secure origins are allowed ...
I had an webapp that uses Geolocation, but, when url has ip, the Geolocation doesn't work.
I catch this error: PositionError {code: 1, message: "Only secure origins are allowed ...
Chrome no longer supports obtaining the user's location using the HTML5 Geolocation API from pages delivered by non-secure connections.
User location is considered sensitive data, that's why Chrome enforced serving your website in a secure context (HTTPS) in order to use the Geolocation API in their browser.
More info: https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only