Extension for caching and mocking API (XHR/Fetch) responses
Oh-my-Mock Extension
OhMyMock mocks XMLHttpRequest and Fetch requests. It caches responses automatically and as soon an API is called for which a response is already cached it will mock that request by serving a cached response. In the UI of OhMyMock you can modify responses, add response status codes and a much more.
Read more
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Oh-my-Mock", "version": "3.3.15", "description": "Extension for caching and mocking API (XHR/Fetch) responses", "manifest_version": 3, "minimum_chrome_version": "96", "permissions": [ "background", "storage", "unlimitedStorage", "tabs", "declarativeNetRequest", "webRequest" ], "host_permissions": [ "" ], "action": { "default_icon": "oh-my-mock/assets/icons/icon-off-128.png", "default_title": "OhMyMock" }, "background": { "service_worker": "background.js" }, "content_scripts": [ { "matches": [ "" ], "run_at": "document_start", "js": [ "content.js" ] } ], "web_accessible_resources": [ { "resources": [ "oh-my-mock.js", "oh-my-mock.js.map", "early-inject.js", "sandbox.html" ], "matches": [ "" ] }, { "resources": [ "oh-my-mock/index.html" ], "matches": [ "" ] } ], "icons": { "16": "oh-my-mock/assets/icons/icon-16.png", "48": "oh-my-mock/assets/icons/icon-48.png", "128": "oh-my-mock/assets/icons/icon-128.png" }, "sandbox": { "pages": [ "sandbox.html" ] }}
Read more