Replace axios with a simple custom fetch wrapper
mariuz
15 points
3 comments
April 01, 2026
Related Discussions
Found 5 related stories in 50.2ms across 3,471 title embeddings via pgvector HNSW
- Post Mortem: axios NPM supply chain compromise Kyro38 · 71 pts · April 03, 2026 · 47% similar
- Axios compromised on NPM – Malicious versions drop remote access trojan mtud · 373 pts · March 31, 2026 · 47% similar
- Active Supply Chain Attack on axios 1.14.1 lemax · 16 pts · March 31, 2026 · 46% similar
- Next.js 16.2 goldkey · 14 pts · March 18, 2026 · 41% similar
- Npmx: a fast, modern browser for the NPM registry todsacerdoti · 14 pts · March 03, 2026 · 40% similar
Discussion Highlights (2 comments)
joeframbach
In the case of authentication redirect, any inflight request is going to fail and you're about to navigate in a few milliseconds, so I don't resolve those promises. Return new Promise(() => {}).
pheew
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.