Repository navigation
✨ Features
- 🎭 Mock tab / request overrides — override any request (matched by URL substring or API label): return a mock response (status + body) with no backend, or rewrite the outgoing request body before it hits the server. Toggleable rules; mocked rows get a
MOCKbadge. - 🐢 Throttle slider — add 0–5000 ms of artificial latency to every fetch.
- 🧹 Cache-clear button — wipe
localStorage,sessionStorage, Cache Storage & service workers in one click. - New API:
addOverride,updateOverride,removeOverride,clearOverrides,getOverrides,subscribeOverrides,setThrottle,getThrottle,clearBrowserCache; newOverrideRuletype.
🔒 Security hardening
- URL secrets redacted — secret query params (
access_token,api_key,signature, …) anduser:pass@userinfo are stripped from the stored/displayed URL. - Plain-text bodies scrubbed — JWTs,
Bearer …tokens, and urlencoded secret pairs masked in non-JSON bodies. - Disabled in production —
installFetchLoggerandmountFetchLoggerPanelno-op entirely in a production build unlessallowInProduction: true. NewisProductionBlocked()helper. Behaviour change: apps running the logger in production must set this flag. - Redaction is display-only — the real network request is sent untouched.
- Source maps no longer published (tarball 100.8 kB → 38.5 kB).
Full changelog: https://github.com/jasimvkarim/fetchlogger/blob/main/CHANGELOG.md