---
title: "Discussion on \"4 ways to mock an API response in the browser (without touching the backend)\" | Hashnode"
description: "Discussion on \"4 ways to mock an API response in the browser (without touching the backend)\". Four ways to fake an API response in the browser: DevTools overrides, MSW, a console fetch patch or an extension, and when to use each."
url: "https://hashnode.com/posts/4-ways-to-mock-an-api-response-in-the-browser-without-touching-the-backend/6b094ec4a74fc9a3b82cfc6b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [4 ways to mock an API response in the browser (without touching the backend)](https://requestfox.hashnode.dev/4-ways-to-mock-an-api-response-in-the-browser-without-touching-the-backend?utm_source=hashnode&utm_medium=feed)

Four ways to fake an API response in the browser: DevTools overrides, MSW, a console fetch patch or an extension, and when to use each.

4d ago · 8 min read · requestfox.hashnode.dev  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#api](https://hashnode.com/tag/api)
-   [#testing](https://hashnode.com/tag/testing)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#chrome-extension](https://hashnode.com/tag/chrome-extension)
-   [#firefox](https://hashnode.com/tag/firefox)
-   [#apis](https://hashnode.com/tag/apis)
-   [#requestfox](https://hashnode.com/tag/requestfox)

## Written by

[RequestFox](https://hashnode.com/@requestfox)

@requestfox · Delhi, India

  
[View profile](https://hashnode.com/@requestfox)

Free API tester and network monitor for Chrome and Firefox.

Practical guides on API testing and debugging web apps in the browser: finding failed, slow and duplicate API calls, mocking responses, and turning what you find into clear bug reports and tests. Written by Abhishek Johri, the maker of RequestFox.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
