为什么在最新的Chrome中未定义navigator.storage? [英] Why is navigator.storage undefined in latest Chrome?

查看:67
本文介绍了为什么在最新的Chrome中未定义navigator.storage?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本地开发时,我尝试在 http://0.0.0.0:5000 上使用 navigator.storage ,但 navigator.storage undefined .

I'm trying to use navigator.storage on http://0.0.0.0:5000 while developing locally, but navigator.storage is undefined.

何时/为什么不能定义 navigator.storage ?

When/why can navigator.storage be undefined?

我正在使用Chrome 77.

I'm in Chrome 77.

推荐答案

按照@ Ry-的注释,使用 http://localhost:5000 http://127.0.0.1:5000 而不是 http://0.0.0.0:5000 可以解决问题.

As per @Ry-'s comment, using http://localhost:5000 or http://127.0.0.1:5000 instead of http://0.0.0.0:5000 does the trick.

由于某种原因,浏览器决定在访问 http://0.0.0.0 上的URL时使 navigator.storage 不可用.

For some reason the browser decides to make navigator.storage unavailable when visiting a URL on http://0.0.0.0.

这篇关于为什么在最新的Chrome中未定义navigator.storage?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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