Open Collective
Open Collective
Loading
Node.js interception revamped
Published on April 21, 2021 by Artem Zakharchenko

We are excited to have rewritten the Node.js request interception, improving its internal logic and public API (no breaking changes for MSW users). This rewrite allowed us to introduce browser-oriented interceptors to catch requests done via XMLHttpRequest and window.fetch. With those interceptors on board, we'll be able to provide a fallback mode for MSW to work in the environments where Service Workers aren't supported.