M
M
Maxim Timofeev2016-06-15 19:03:11
JavaScript
Maxim Timofeev, 2016-06-15 19:03:11

Is it possible to overcome the error "To use this feature, you should consider switching your application to a secure origin, such as HTTPS"?

I use this script:
https://github.com/BlueBiteLLC/service-geolocate-l...
it gives an error:

getCurrentPosition() and watchPosition() are deprecated on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

I do not understand how to overcome without https, any ideas?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
#
#algooptimize #bottize, 2016-06-15
@webinar

It seems that it only works from a site on httpps, it is possible that it doesn’t, this is a limitation in the default browser

V
Vlad Zhivotnev, 2016-06-16
@inkvizitor68sl

Well, oops.
"!!Important!!: Due to a change in the Chrome API, Geolocation has been disabled from non-https origins"
Right there on the page you link to.

P
Petr Volkhanov, 2017-07-17
@eprivalov

Put Google Chrome below version 50 and the error will disappear

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question