Skip to content Skip to sidebar Skip to footer

Fail To Read Localstorage

I have a plunker to set a value in localStorage:

Solution 1:

According to https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage localStorage is specific to a document's origin. Can you confirm that you are reading a value from localStorage using the same origin as where you wrote the value?


Post a Comment for "Fail To Read Localstorage"