相关疑难解决方法(0)

"unsafely-treat-insecure-origin-as-secure"标志不适用于Chrome

我在使用Chrome上的HTTP在我的计算机上本地运行的网站上使用地理位置.但是这不起作用,因为我在HTTP上运行而不是HTTPS.

在控制台上它说:

getCurrentPosition() and watchPosition() no longer work on insecure origins.
To use this feature, you should consider switching your application to a 
secure origin, such as HTTPS. See https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins 
for more details.
Run Code Online (Sandbox Code Playgroud)

为了在不安全的起源上弃用强大的功能,它说使用--unsafely-treat-insecure-origin-as-secure="http://example.com"旗帜开始镀铬.我运行的命令类似于:

chrome.exe --unsafely-treat-insecure-origin-as-secure="http://hello.app"
Run Code Online (Sandbox Code Playgroud)

但是,仍会出现相同的错误消息.

我该如何解决这个问题.

google-chrome

28
推荐指数
3
解决办法
3万
查看次数

标签 统计

google-chrome ×1