解决在HTML中嵌入Kibana Dashboard浏览器报错的问题

参考:
https://stackoverflow.com/questions/30481516/iframe-in-chrome-error-failed-to-read-localstorage-from-window-access-deni
出错页面:
在这里插入图片描述

Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
Version: 7.3.1
Build: 25359
Error: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
    at ChromeService._callee$ (http://localhost:5601/bundles/commons.bundle.js:3:1668289)
    at tryCatch (http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:541:457486)
    at Generator.invoke [as _invoke] (http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:541:461321)
    at Generator.prototype.<computed> [as next] (http://localhost:5601/built_assets/dlls/vendors.bundle.dll.js:541:458609)
    at asyncGeneratorStep (http://localhost:5601/bundles/commons.bundle.js:3:1665475)
    at _next (http://localhost:5601/bundles/commons.bundle.js:3:1665785)
    at http://localhost:5601/bundles/commons.bundle.js:3:1665935
    at new Promise (<anonymous>)
    at ChromeService.<anonymous> (http://localhost:5601/bundles/commons.bundle.js:3:1665698)
    at ChromeService.start (http://localhost:5601/bundles/commons.bundle.js:3:1672312)

解决办法:在Chrom浏览器地址栏里输入:chrome://settings/content/cookies
进入页面:

关闭那个“阻止第三方Cookies”,就可以了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值