参考:
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”,就可以了。