I just understood promises in JS and I wrote some code but sololearn says only secure origins are allowed. Any explanation pls? | SoloLearn: Learn to code for FREE!

+2

I just understood promises in JS and I wrote some code but sololearn says only secure origins are allowed. Any explanation pls?

https://code.sololearn.com/W6O40jn6pT6x/?ref=app

js

4/6/2020 4:46:39 AM

JAM

4 Answers

New Answer

+3

It’s a new secure procedure from google, Geolocation is only allowed from HTTPS and no longer supports HTTP. go here👇 for more information https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only

+3

Oh ok. Thanks ☺ ☺

+3

Arsenic I have read it. Thanks. So they've changed that feature since 2016. Only secure sources like https are allowed

+1

I think it's a WebView issue