Web Security · Junior · Question 49 of 75

Which data should never be stored in localStorage?

Explanation

localStorage is plain text, persistent and readable by any script on the origin. It's fine for preferences, not for secrets.

Further reading

Problem with a question

Web Security · Junior · question 49

Test yourself

Take the Web Security · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz