Mock, modify, and replay API. Easy setup. No proxy needed. No code change required.

Latest Version

Version
1.2.1
Update
August 31, 2023
Size
454KiB
Developer
modheader.com
Category
Users
10,000+
Rating
4.56522 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Alarms
ContextMenus
Storage
ActiveTab
Debugger
UnlimitedStorage
See more

ModResponse - Mock and replay API Extension

ModResponse is a powerful and easy-to-use tool for web developers that simplifies the process of modifying, stubbing, and replaying HTTP responses. It requires no extra proxy or code change to be made, allowing you to quickly and conveniently test different scenarios and debug edge cases.

With ModResponse, you can modify the API response, return different HTTP status code, add delay to your request, etc. You can also reroute your HTTP request to a different server, allowing you to test your local changes in production domain within seconds, without the risk of breaking production.

ModResponse does not require extra proxy or making any code change. It can modify pretty much any HTTP request, not just XHR requests. Simply install it and you are ready to go!

** What can ModResponse do?**
- Record and replay HTTP response
- Stub HTTP response
- Reroute request to a different URLs
- Change HTTP response body, status code, and headers
- Delay HTTP requests to simulate slow network
- Simulate network errors
- Advanced filtering by tab, tab group, window, or time

** Sample use cases **

- Demo with fake data
Want to create perfect data for your product demo? With ModResponse, you can replace the actual API response with a fake one that contains the data you want. No need to change your real data or make code change.

- Speed up slow requests
Do you have API requests that are taking a long time to finish, and every time you make a small UI tweak you need to wait >10 seconds for the API request to finish to visualize your change? Using replay response, you can record and replay the slow API request. That way, you will only need to wait on the slow API request once. All subsequent requests to be served from the cached response within a few milliseconds.

- Develop against edge cases
Need to handle a 4XX or 5XX status code from an XHR request, or try out how your UI will behave with a very long string? Using replay response or stub response, you can modify the response body, status code, or response headers to simulate different scenarios that you need to handle.

- Develop against unimplemented APIs
Are you a web developer who is blocked because an endpoint you depend on is not yet implemented? Using stub response, you can mock the API response so you can start developing against that endpoint. That way, you can develop the frontend while others implement the endpoint (as long as the actual implementation return the response in the same format).

- Testing on production domains
Do you need to integrate with a third party platform that only works on your production domain? Using proxy request, you can reroute the request from your production domain to localhost or a dev domain, allowing you to test your changes on your production domain without the risk of breaking it.

- Debug edge cases
Need to test how your app behaves when some resources takes too long to load, or when they fail to load due to network errors? With ModResponse, you can add artificial delay and simulate different network error conditions so you can debug and handle edge cases with ease.

** Other ModResponse features **
- Support having multiple profiles with quick switching between profiles
- Export and import profile
- Easily share your profiles with others
- Dark mode support
- Customizable profile badge
- Clone profile
...and more!!!


** Permissions **
ModResponse currently requires these permissions:
1, \"debugger\"
2, \"tabs\"
3, \"storage\"
4, \"unlimitedStorage\"
5, \"contextMenus\"

\"debugger\" is required in order for response modification to work. \"tabs\" permission is required for prefilling the URLs, and for tab filter, tab group filter, and window filter to work. \"storage\" and \"unlimitedStorage\" are required to store the response modification. \"contextMenus\" is used to enable quick pause/unpause by right-clicking on the icon.

** Known issues **
1, You will see [\"ModResponse\" started debugging this browser] banner when ModResponse is activated. This is because it uses the debugger API, which is needed for response modification. Due to Chrome's security policy (https://crbug.com/1096262), that banner would show up on all tabs even when a tab is not being modified, and it may still for a few more seconds after ModResponse is paused or disabled. To hide it, you can run chrome with --silent-debugger-extension-api command line switch.
2, Clicking on the \"Cancel\" button on the [\"ModResponse\" started debugging this browser] banner will not deactivate ModResponse. To deactivate it, please open ModResponse and click on the \"Pause\" button. Once paused, the banner should disappear in a few seconds.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "ModResponse - Mock and replay API", "version": "1.2.1", "description": "Mock, modify, and replay API. Easy setup. No proxy needed. No code change required.", "short_name": "ModResponse", "homepage_url": "https://modheader.com/modresponse", "background": { "service_worker": "background.js", "type": "module" }, "action": { "default_icon": { "32": "images/icon.png" }, "default_title": "ModResponse", "default_popup": "popup.html" }, "icons": { "16": "images/icon_16.png", "48": "images/icon_48.png", "128": "images/icon_128.png" }, "incognito": "spanning", "permissions": [ "alarms", "contextMenus", "storage", "activeTab", "debugger", "unlimitedStorage" ], "host_permissions": [ "https://modheader.com/*", "" ], "commands": { "_execute_browser_action": { "suggested_key": { "default": "Ctrl+Shift+H" } }, "toggle_pause": { "description": "Toggle pause/resume", "suggested_key": { "default": "Alt+Shift+P" } }, "switch_to_profile_1": { "description": "Switch to 1st profile" }, "switch_to_profile_2": { "description": "Switch to 2nd profile" }, "switch_to_profile_3": { "description": "Switch to 3rd profile" }, "switch_to_profile_4": { "description": "Switch to 4th profile" } }, "externally_connectable": { "matches": [ "*://modheader.com/*" ] }}
Read more

Similar Extensions

icon

Parrot API mocking Extension · Developer Tools 10,000+ 5 ★ 3.6MiB

icon

ModHeader - Modify HTTP headers Extension · Developer Tools 10,000+ 1061 ★ 676KiB

icon

Mokku Extension · Developer Tools 10,000+ 76 ★ 3.28MiB

icon

Oh-my-Mock Extension · Developer Tools 10,000+ 8 ★ 7.07MiB

icon

Tamper Dev Extension · Developer Tools 10,000+ 29 ★ 532KiB

icon

Request Interceptor Extension · Developer Tools 10,000+ 12 ★ 23.97KiB

icon

Mimic , mock http requests Extension · Developer Tools 10,000+ 5 ★ 2.48MiB

icon

Netify Extension · Developer Tools 10,000+ 40 ★ 1.24MiB

icon

Chrome Response Override Extension · Developer Tools 10,000+ 15 ★ 488KiB

icon

Request Interceptor Extension · Developer Tools 10,000+ 58 ★ 1.89MiB

icon

tweak: mock and modify HTTP requests Extension · Developer Tools 10,000+ 190 ★ 3.22MiB

icon

Inssman: Open-Source: Modify HTTP Request Extension · Developer Tools 10,000+ 10 ★ 3.51MiB

icon

Requestly - Intercept, Modify & Mock HTTP Requests Extension · Developer Tools 10,000+ 1227 ★ 876KiB

icon

HTTP-TRACKER Extension · Developer Tools 10,000+ 33 ★ 85.4KiB

icon

MockMan - mock APIs Extension · Productivity 10,000+ 17 ★ 2.3MiB

icon

API Interceptor Extension · Developer Tools 10,000+ 1 ★ 2.4MiB

icon

Ajax Interceptor Tools Extension · Developer Tools 10,000+ 12 ★ 2.31MiB

icon

RestMan Extension · Developer Tools 10,000+ 38 ★ 478KiB

icon

Ajax Modifier Extension · Developer Tools 10,000+ 48 ★ 2.08MiB

icon

Rest API Inspector Extension · Developer Tools 10,000+ 6 ★ 365KiB

icon

URL Throttler Extension · Developer Tools 10,000+ 31 ★ 38.13KiB

icon

Resource Override Extension · Developer Tools 10,000+ 204 ★ 432KiB

icon

API Trace Extension · Developer Tools 10,000+ 2 ★ 43.22KiB

icon

Modify Header Value (HTTP Headers) Extension · Developer Tools 10,000+ 46 ★ 94.33KiB

User reviews

icon

别超 (ID: 0000001eff969a50) Voted 4 ★ - Updated 05/22/2024 It's so cool, but I just got a problem that when click the some URL, it cannot popup the window for me to modify the reposne, I am not sure if it because of the URL is too long, it's only 150 characters.

icon

Jose Fragoso (ID: 000000e229e98dbf) Voted 5 ★ - Updated 07/14/2023 Amazing!

icon

Yevhenii Miniailenko (ID: 0000005c241e78d1) Voted 5 ★ - Updated 06/22/2023 Nice tool, thanks!

icon

Marius Bongarts (ID: 000000d8d904f14e) Voted 5 ★ - Updated 12/03/2022 I have tried many extensions to mock HTTP requests. Unfortunately, most of them didn't work the way I wanted them to. I used a similar extension, "ModHeader" from the same vendor for a long time. Now I am glad that he released this extension. With this app, you can easily redirect the server to your local server, for example, to test new features in the deployed frontend.

icon

Вадим Струтовський (ID: 0000001ddca2550f) Voted 5 ★ - Updated 08/10/2022 wow it can redirect requests to local address, cool