首页 > Windows开发 > 详细

Uncaught DOMException: Failed to read the 'localStorage' property from 'Window'

时间:2020-08-04 16:52:17      阅读:838      评论:0      收藏:0      [点我收藏+]

最近项目中遇到一个问题,在无痕模式下,系统报错:Uncaught DOMException: Failed to read the ‘localStorage‘ property from ‘Window‘ 

参考:https://blog.csdn.net/joyvonlee/article/details/94602768

解决办法:

Under Chrome‘s Settings > Privacy > Content settings, you have the cookie setting set to to "Block sites from setting any data"
 
即:
 
在Chrome设置菜单中: 高级 > 隐私设置和安全性 > 内容设置 > Cookie > 阻止第三方Cookie
 
将这项关闭,如下图:
技术分享图片

 

 

Uncaught DOMException: Failed to read the 'localStorage' property from 'Window'

原文:https://www.cnblogs.com/juneyss/p/13433695.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!