admin管理员组文章数量:1289623
So I have a site running on Adobe AEM 5.6.1 which checks if localStorage is accessible. The problem for me is it breaks with an "Access Denied" when I access the site from the Desktop version of IE11 (on a HP Elite Pad 900, running windows 8.1 Pro). On the same device it works fine using the metro mode version of IE11.
It also works fine on at least two other puters here, one native PC, one virtualbox:ed on my mac.
I know you are not allowed to access localStorage when running a local html-file but this is running on our server.
What could be different in access rights/security settings for the non-functional browser? Is there any way of checking this programmatically with javascript?
So I have a site running on Adobe AEM 5.6.1 which checks if localStorage is accessible. The problem for me is it breaks with an "Access Denied" when I access the site from the Desktop version of IE11 (on a HP Elite Pad 900, running windows 8.1 Pro). On the same device it works fine using the metro mode version of IE11.
It also works fine on at least two other puters here, one native PC, one virtualbox:ed on my mac.
I know you are not allowed to access localStorage when running a local html-file but this is running on our server.
What could be different in access rights/security settings for the non-functional browser? Is there any way of checking this programmatically with javascript?
Share Improve this question asked Nov 26, 2013 at 9:11 primavera133primavera133 1,3141 gold badge15 silver badges24 bronze badges 3- When I run IE as Admin or disable Protected Mode the issue disappears. – primavera133 Commented Nov 26, 2013 at 9:24
- 1 This sounds like an ACL'ing bug in the broker that accesses the Local Storage file; I had this problem once on one PC after something got corrupted. Try clicking Tools > Internet Options > Advanced and click the "Reset IE to defaults" (all settings) option and reboot. If the issue isn't fixed, you'll need to contact Microsoft Product Support. – EricLaw Commented Feb 11, 2014 at 14:43
- Well I don't so much care about my virtual machines test environment so much as I do about other ppl not experiencing a broken website due to this kind of local errors. But I solved that by using wrapping the code in a try catch-statement. – primavera133 Commented Feb 13, 2014 at 12:20
1 Answer
Reset to default 7The way to check for local storage programmatically in JS seems to be to always use a try-catch:
http://mathiasbynens.be/notes/localstorage-pattern#ment-9
本文标签:
版权声明:本文标题:javascript - Access denied for localStorage in IE11 but only in desktop mode (not in metro mode) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741456221a2379772.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论