Fork me on GitHub
#aws
<
2021-09-02
>
MikeE23:09:46

Local storage has a risk of XSS. A better option is to use cookies but you need to set the httpOnly flag, send over SSL and only to the same site you served the client application from. That scenario may or may not be a situation you're deployment supports .

👍 4
Drew Verlee01:09:09

FWIW this post seems to disagree that it's more secure. https://academind.com/tutorials/localstorage-vs-cookies-xss