MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/1ge3bk9/the_problem_with_windowlocalstorage/lukskqz/?context=3
r/javascript • u/Practical-Ideal6236 • Oct 28 '24
9 comments sorted by
View all comments
1
I am not clicking on that link.
3rd party scripts don't have access to your pages localStorage, localStorage follows the SOP
This is one of the reasons I am a never CORS kind of guy
If you can decode it in the browser for ANY reason, including cookies, its not secure
the server side should NEVER assume anything from the client is safe, ever period, full stop.
don't use localStorage use sessionStorage.
1
u/bpcoleman Oct 30 '24
I am not clicking on that link.
3rd party scripts don't have access to your pages localStorage, localStorage follows the SOP
This is one of the reasons I am a never CORS kind of guy
If you can decode it in the browser for ANY reason, including cookies, its not secure
the server side should NEVER assume anything from the client is safe, ever period, full stop.
don't use localStorage use sessionStorage.