Chrome中的iframe错误:未捕获SecurityError:无法从“窗口”读取'sessionStorage'属性 [英] Iframe in Chrome error: Uncaught SecurityError: Failed to read the 'sessionStorage' property from 'Window'

查看:4059
本文介绍了Chrome中的iframe错误:未捕获SecurityError:无法从“窗口”读取'sessionStorage'属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

未捕获的SecurityError:未能从'Window'读取'sessionStorage'属性:此文档的访问被拒绝。



不知道如何继续。 ..当我所做的只是`
在Firefox中工作,而不是在Chrome中工作。
可能与 http://help.twitch有关。 tv / customer / portal / questions / 6299203-javascript-errors-in-chrome-

解决方案

localStorage 存在同样的问题,并修复它: 设置>隐私>内容设置 cookies设置为允许设置本地数据或第二个选项(在我的情况中,它之前位于阻止网站设置任何数据





编辑



在较新的Chrome版本中,请确保在此选择第一个选项:chrome:// settings / content / cookies


Uncaught SecurityError: Failed to read the 'sessionStorage' property from 'Window': Access is denied for this document.

No clue how to go further on this...when all I did was ` Works in Firefox, not in Chrome. Could be something related to http://help.twitch.tv/customer/portal/questions/6299203-javascript-errors-in-chrome-

解决方案

I had the same problem with localStorage, and fixed it like this :

Under Settings > Privacy > Content settings, change the cookies' settings to "Allow local data to be set" or the second option (in my case, it was previously on "Block sites from setting any data").

Edit

On newer Chrome versions, make sure the first option is ticked here: chrome://settings/content/cookies

这篇关于Chrome中的iframe错误:未捕获SecurityError:无法从“窗口”读取'sessionStorage'属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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