News for hackers. Stuff that matters.
Re:Replace axios with a simple custom fetch wrapper by pheew on Wednesday April 01, 2026 @01:47PM (#47604125)
I’m all for replacing as much 3rd party libs with stdlib but it’s hard to look past the storing of the jwt in localStorage. Please don’t do that people. It’s very easily extracted through xss attacks.
Re:Replace axios with a simple custom fetch wrapper by moi2388 on Wednesday April 01, 2026 @04:51PM (#47606397)
A cookie is susceptible to both xss and CSRF. You ought to be protecting against xss anyway.