尝试在iOS 10中获取safari中的地理位置时发生错误 [英] Got an error when trying to get the geolocation in safari on iOS 10

查看:571
本文介绍了尝试在iOS 10中获取safari中的地理位置时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[阻止]通过与 http://www.hnsjb.cn 的不安全连接阻止对地理位置的访问。

[blocked] Access to geolocation was blocked over insecure connection to http://www.hnsjb.cn.

我应该将网站更改为https协议吗?

Should I change my website to the https protocol?

推荐答案

现在iOS 10和桌面Safari 10似乎都需要https连接。 Safari浏览器似乎也比Chrome早些时候更严格。 Chrome不允许出现混合内容警告,例如将地图切片加载到正常的http上。

iOS 10 and also desktop Safari 10 seem to require https connection now. Safari also seems to be more strict than what Chrome did earlier. No mixed content warnings are allowed, Chrome allows e.g. map tiles to load over normal http.

这篇关于尝试在iOS 10中获取safari中的地理位置时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆