4
I'm getting the error in IE9 when loading my app: 

Error: An internal error occurred in the Microsoft Internet extensions Error: Access is denied.

When I debug in IE's dev tools, it points to code regarding localStorage.

if (localStorage) {
  // some code
} else {
  // some code
}

I'm not sure whether this is an angular-IE issue, or if it's just IE related. Thanks in advance!

  • possible duplicate of [check if localStorage is available](http://stackoverflow.com/questions/16427636/check-if-localstorage-is-available) – Ian Apr 29 '14 at 22:04
  • update: I ended up finding that this is most likely an issue with CORS and IE9. I've looked into using XDomain (https://github.com/jpillora/xdomain) but am not too sure on what's being referred to when the mention slave and master domains. ANy ideas? – call_de_amberlamps May 01 '14 at 15:50

1 Answers1

1

Are you running your app locally? IE9 doesn't support local storage for local files.

There's lots of further explanations from this question: local storage in IE9 fails when the website is accessed directly from the file system

Community
  • 1
  • 1
edwh
  • 58
  • 1
  • 5
  • I'm testing on our dev server not locally, but still keep getting the error. – call_de_amberlamps Apr 30 '14 at 16:42
  • Are you also looking at the site on your Dev server, or are you looking at it from another machine with http:///whatever.html? – edwh Apr 30 '14 at 17:31
  • I'm looking at it form a different machine – call_de_amberlamps Apr 30 '14 at 20:00
  • You could try making sure the machine you're using to load your website is running with admin privileges. You can also check IE settings to make sure protected mode isn't enabled (under Internet Options -> Security). IE is flaky with localstorage support, so you might want to test for it specifically in your code: if(localStorage === "undefined") rather than the way you were originally doing it. – edwh Apr 30 '14 at 21:11
  • update: I ended up finding that this is most likely an issue with CORS and IE9. I've looked into using XDomain (github.com/jpillora/xdomain) but am not too sure on what's being referred to when the mention slave and master domains. ANy ideas? – call_de_amberlamps May 01 '14 at 15:50
  • 1
    As you've probably found - there's only partial support for CORS with IE9 (http://caniuse.com/cors). It sounds like you might want to ask a new question around XDomain to get you further. – edwh May 01 '14 at 22:59