Geolocation Without SSL connection

前端 未结 4 1814
耶瑟儿~
耶瑟儿~ 2020-12-13 20:50

I am developing an application which uses geolocation coordinates. I used the HTML5 geolocation feature to find out the location of the site visitor, but the issue is with C

4条回答
  •  别那么骄傲
    2020-12-13 21:19

    Chrome now prevents untrusted sites from using html5 geolocation. Trusted sites include localhostor any https certified domain. In my case neither of these were possible so instead i opened chrome from the command line with this argument: open -a /Applications/Google\ Chrome.app' --args --unsafely-treat-insecure-origin-as-secure="http://yoursite.test" Which added my particular domain as a trusted site.

提交回复
热议问题