1

Basically i'm trying to remove few localstorage keys from my page. The script I'm using is:

    box.emptyStorageFilter = (function() {
        $('header nav li a').off().on('click', function(e) {
            localStorage.removeItem('list_customers');
            localStorage.removeItem('list_orders');
            localStorage.removeItem('list_products');
            localStorage.removeItem('filter_category');
        });
    }());

I have no idea what's wrong, since it's working on EVERY browser (including IE 8,9,10) but IE 11!

At the console I get this Error:

SCRIPT5: Access is denied.

vbotio
  • 1,566
  • 3
  • 26
  • 53
  • [related](http://stackoverflow.com/questions/13102116/access-denied-for-localstorage-in-ie10). It can even be your anti-virus software. – A1rPun Jul 03 '14 at 19:22
  • Cant. I havent anti-virus. – vbotio Jul 03 '14 at 19:24
  • Also related: http://stackoverflow.com/questions/13392872/why-does-accessing-the-localstorage-object-in-internet-explorer-throw-an-error – Ian Jul 03 '14 at 19:24
  • I think this will answer your question: http://stackoverflow.com/a/20848924/7035175 – Jenna Sloan Feb 01 '17 at 18:51

1 Answers1

1

local storage does not work in local mode it's a security thing (but it can be made 2) http://social.technet.microsoft.com/Forums/ie/en-US/61177c2b-6a38-4207-9cbe-ccd6c86b1d42/html5-local-storage-broken-in-ie11-win-81-x64-error-function-expected#f345c94d-f404-4b4b-b808-d8849646be27 please post an update if you find anything...

fuzzybear
  • 2,325
  • 3
  • 23
  • 45