loading...

re: Architecting HTTP clients in Vue.js applications for efficient network communication VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hi, fellow! Thanks for such a valuable post! Saved it for future ;) I've some questions though) Making network requests inside Vuex actions I...
 

Great Observation! Thanks for the suggestions, I have updated the article with your feedback. And for the part where I used Local Storage, it's just for an easy example, adding to that using cookies instead of localStorage doesn't make much difference since both use the same security policy. Totally agree with implementing robust security in place without using localStorage but If your website is vulnerable to XSS, both the cases should be deemed to be flawed. Storing JWT in localStorage can be made more secure by issuing short term tokens. But yeah, choosing security and ease of implementation is always a matter of trade-offs between both. Thanks for your suggestions, hope it will help the readers alot! :)

Code of Conduct Report abuse