🔨 Sniff HTTP requests making by XHR in the browser or HTTP module in Node.js
https://piecioshka.github.io/xhr-sniffer/demo/browser/
- ✅ Display logs of
XMLHttpRequestsin DevTools Console - ✅ Display logs of
httpmodule inNode.js - ⛔️ Sniffing
Fetch API
Installation:
npm install xhr-snifferconst xhrSniffer = require('xhr-sniffer');
xhrSniffer.install();
// do XHR requests
xhrSniffer.uninstall();Attach files in <head> tag:
<script src="xhr-sniffer/src/common.js"></script>
<script src="xhr-sniffer/src/browser.js"></script>Next, make some XMLHttpRequests requests.
The MIT License @ 2018