0
I have this code:
localStorage.setItem("name", "pedro");
Only when I see application/Local Storage/File is not created Key nor the Value and gives me an error:
test.html:13 Uncaught Domexception: Failed to read the 'localStorage' Property from 'Window': Access is denied for this Document.
What am I doing wrong?
Have you seen first if your browser is compatible? localStorage brower compatibility
– Ricardo Pontual
It may be that your browser has the option "Block third party cookies and website data" enabled. Disable and should work normally.
– Leonardo Tandeli
You need to share the browser you are using and also the operating system. Both have a big influence on this.
– Thiago Cunha
Probably the answer from @Leonardotandeli is correct
– epx