Top Tweets for #XmlHTTPRequest
zoro-lib/http is a TypeScript library of only 36kb based on XMLHttpRequest. It offers complete control, strong typing, and will soon include interceptors, making it the lightweight and ideal choice for integrating into modern projects without dependencies.
Learned XMLHttpRequest today ⚡
Now I can fetch data from APIs without reloading the page 😎
Built a random dog image generator 🐶
Frontend is getting interesting 🔥
#100DaysOfCode #JavaScript #WebDev #day88

Day 60 🚀
Today is for revision and practice with the XMLHttpRequest constructor to understand it better, plus some experiments with this method.
#JavaScript #FrontendDevelopment
Day 60 🚀
Learned XHR (XMLHttpRequest) today — the OG way of fetching data before fetch() 😄
Got hands-on with async requests and dynamic UI updates… things finally clicked 💡
60 days of consistency 💪
#BuildInPublic #JavaScript #FrontendDevelopment

Introducing Zoro, a small HTTP library based on XMLHttpRequests. The public API is promise-based, written entirely in TypeScript, lightweight, easy to integrate, and above all, strongly typed, with autocompletion and interceptors coming soon.
Open source coming soon.

"GET works but POST fails" is usually a preflight failure.
But do you know why preflight exists?
Preflight came with CORS around 2010–2011, when browsers introduced cross-origin XHR (XMLHttpRequest Level 2).
Before that, browsers followed a strict rule: cross-origin requests were mostly blocked. That worked… until APIs, SPAs, and SaaS apps made it impractical.
So browsers relaxed the rule, but with a condition:
"We'll allow cross-origin requests only if the server explicitly agrees."
That agreement is the preflight OPTIONS request.
Instead of trusting developers or guessing intent, the browser asks first. If the server doesn't opt in, the request never takes off.
It's called preflight for the same reason planes do checks before takeoff.
GET requests work, but POST requests fail with CORS error.
Same endpoint.
What did we miss?
💡Learned about XHR today
XMLHttpRequest (XHR) is a JavaScript API that lets browsers make HTTP requests to servers without reloading the page.
It was the foundation of AJAX and changed the web from static pages to dynamic apps.
Now mostly replaced by the cleaner fetch() API
@rutu_3 XMLHttpRequest blocked by cors
Finished challenge 1 in the async JS section! I've learned;
- Making AJAX calls using XMLHttpRequest & fetch API
- Promises, both consuming and chaining (.then.catch.finally)
- Handling rejected promises
- Throwing errors manually (throw new error)
-Find and use API myself 🫡👨💻
🚨 A brief note on Yesterday, one of the largest supply chain breaches in years was witnessed by crypto & JavaScript developers.
Malware was pushed into libraries downloaded billions of times per week through a single hacked account.
Here’s how it unfolded — and why crypto was affected
1/ It started quietly.
A strange error “fetch is not defined” was hit by a few developers.
At first, it was assumed to be just another build hiccup.
But that tiny glitch was actually the first trace of malicious code buried deep in trusted tools.
2/ The npm account of “qix” — maintainer of small but vital packages — was compromised:
•chalk (313M downloads/wk)
•strip-ansi (261M)
•color-convert (193M)
Most people never notice these, but they are included in the dependency tree of nearly every web app.
3/ With access in hand, new “updates” were pushed by the attacker.
Because these are automatically pulled by open-source projects, the poisoned code was spread worldwide in hours ,no red flags were raised.
4/ The hidden weapon: a crypto clipper.
It was operated in two modes:
•Passive- wallet addresses (BTC, ETH, SOL, etc.) were swapped by overriding fetch/XMLHttpRequest.
•Active -wallets like MetaMask were hijacked, with recipients replaced as transactions were signed.
5/ The scary part: invisibility.
Wallet screens and UIs still showed the intended address.
But the signed transaction was silently redirected to the attacker.
6/ One of the attacker’s Ethereum wallets was traced by investigators:
0xFc4a4858bafef54D1b1d7697bfb5c52F4c166976
Almost 300 linked wallets have been surfaced.
Funds remain trackable, but the theft infrastructure has already been put in place.
7/ Actions that should be taken now:
•Addresses should be double-checked on a hardware wallet screen before signing.
•Risky on-chain activity should be avoided if only software wallets are being used.
•Developers: safe versions should be pinned (chalk 5.3.0, strip-ansi 7.1.0, error-ex 1.3.2), installs wiped, and rebuilds done clean.
8/ The bigger lesson:
This was not a zero-day exploit.
A stolen key was all it took to nearly turn billions of downloads into a global crypto theft pipeline overnight.
The fragility of open-source supply chains was highlighted.
9/ And here’s the worrying part…
This may be only the first wave. 👀
If one trusted maintainer can be compromised, others can be compromised too.
What happened yesterday could just be the beginning.
Stay alert.
3/ Attack Flow:
In summary, the threat proceeds as follows:
Detect wallet (window.ethereum)
Install hooks (monkey patch APIs fetch and XMLHttprequest)
Wait for transaction
Intercept transaction request
Find recipient address (using regex)
Check if DEX (compare against known routers)
Replace with attacker address
Forward modified transaction
Fake success response
1/ What the malware does:
Hooks browser functions (fetch, XMLHttpRequest) and wallet APIs (Ethereum, Solana, etc.)
Scans for wallet addresses and transaction data across major crypto formats
Hijacks transactions before signing, replacing recipients with attacker-controlled addresses
Stays stealthy to avoid detection
A-Z essential concepts of web development:
A - API (Application Programming Interface)
B - Backend Development
C - CSS (Cascading Style Sheets)
D - DOM (Document Object Model)
E - Express.js (Web Application Framework)
F - Frontend Development
G - Git & GitHub
H - HTTP/HTTPS (HyperText Transfer Protocol)
I - Index.html
J - JavaScript
K - Keywords in SEO
L - Layout (Flexbox & Grid)
M - Middleware
N - Node.js
O - OAuth (Open Authorization)
P - Progressive Web Apps (PWA)
Q - Query Parameters
R - RESTful APIs
S - Semantic HTML
T - Tokens (Authentication)
U - UI/UX Design
V - Version Control
W - Webpack
X - XMLHTTPRequest (XHR)
Y - YAML in DevOps (used in CI/CD pipelines)
Z - Z-index in CSS
@im_matt_caruso haha I already know but it's just weird that a new API that has been quite stable for sometime is lacking such a core feature. I have to use xmlHttpRequest after a long long time
🏵️What is the Fetch API?
The Fetch API is a modern promise-based way to make HTTP requests in JavaScript.
✅ Replaces XMLHttpRequest.
Do people still say AJAX? Or, "fetch", or what? It's still XMLHttpRequest in my books, baby.
We do not use XMLHTTPRequest
@samofolabi @ShawnBasquiat how are you making the request?.. xmlhttprequest?.. jquery ajax?.. curl and cli?
1. JavaScript Recon 🔍
- JS files often contain hidden endpoints, API keys, or debug info.
✅ What to check: • main.js, bundle.js• window.location, fetch(), XMLHttpRequest• Hardcoded tokens / API URLs
- Tools: LinkFinder, JSParser, browser DevTools
3) Old-style AJAX Requests – Use Fetch Instead
No need to learn XMLHttpRequest, just use fetch() or axios.
In many projects - I use axios, but my soul is always for fetch. Only vanilla, only hardcore! (Please do not write about XMLHTTPRequest in 2025).
What do you think?
@jcubic no of what I read ~ fetch replaced XMLHttpRequest in 2015, and axios followed as a third-party Library 2016.
i personally enjoy fetch much more though
@vishalsingh2972 Remember
const xhr = new XMLHttpRequest();
🤣
What would you use AJAX (XMLHttpRequest) or fetch?
Fetch is more modern, cleaner, supports streaming.
AJAX better for backwards compatibility, Progress and abort builtin.
Can't decide...
@OyabureZakari who still uses xmlhttprequest in 2025? fetch is literally your bestie for api calls!
The Fetch API has modernized HTTP requests in JavaScript, offering a more straightforward and powerful way to interact with servers.
Are you still using XMLHttpRequest? 😅
Most Popular Users

Elon Musk 
@elonmusk
239.4M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers
























