Safari Localhost权限被阻止 [英] Safari Localhost Permission Blocked

查看:527
本文介绍了Safari Localhost权限被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,今天遇到了这个问题,我在那儿有一个需要对用户进行地理位置定位的网站.在本地主机上本地运行时,它运行良好,但是现在我收到一条错误消息,指出由于与". WTF苹果?我也尝试了127.0.0.1,但是得到了相同的结果.我是在开发环境中丢失了某些东西还是Apple破坏了一切?

Safari版本:9.1.3(11601.7.8)

解决方案

也许可以使用https(http://localhost:4200". WTF Apple? I also tried 127.0.0.1 but got the same result. Am I missing something in the dev settings or did Apple just break everything?

Safari Version: 9.1.3 (11601.7.8)

解决方案

Maybe it's possible to use https ( How to get angular-cli to ng serve over HTTPS ) and if not is possible directly for some reason maybe you can use a transparent proxy that offers https.

Many HTML5 new features like access to webcam, geolocation and others are now allowed only on pages served thru https scheme, so probably using https will work again. If not, maybe is possible to modify hosts file to workaround the problem.

这篇关于Safari Localhost权限被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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