Mock Data: Intercept API Requests
Replace API responses with canned data during scans for deterministic results.
Video coming soon
Follow the written steps below in the meantime
Step-by-Step Instructions
- 1In the Test Config Builder, go to the Mocks tab.
- 2Add a URL pattern to match (e.g., "/api/users").
- 3Choose the HTTP method (GET, POST, etc.) and response status code.
- 4Enter the response body as JSON.
- 5Optionally add response headers.
- 6Download the config and upload it in the extension.
- 7During scans, matching fetch/XHR requests are intercepted and return your canned data.
- 8This gives deterministic, repeatable results — the same data every scan, regardless of backend state.