![]() ![]() Is used by all browsers for AJAX calls, I leveraged this to monitor the API calls through monkey patching. Without responses, debug would be painful and resolving issues would be slow. ![]() Our requirement was to capture the response so that they could be shared with team members. While we were surprised by the lack of a response body getters, we now understand a possible reason why most otherĮxtensions do not capture the responses. However, we ran into a bug where the WebRequest API doesn’t expose an interface to It seemed to be the most natural place to capture the data. We leveraged those APIs before for our CORS and Origin Changer. Initially, I looked at the Chrome’s WebRequest APIs to capture API calls from an open browser tab. Is part of the Chrome Extension set of APIs. However, some monkey business was needed to do the capturing that went around the Chrome Extension APIs due to limitations in Chrome’s APIs. The extension is designed for REST APIs in mind such as those powering Single-Page Apps. The network tab is designed for traditional HTML websites rather than modern Single-Page Apps and APIs that return JSON.ĭue to this time sink, we decided to build a Chrome Extension to make capturing and debugging these AJAX requests (and In addition to not being easy to share, inspecting HTTP traffic in Chrome DevTools is not ideal because there is no easy way to filter the API Calls or inspect JSON payloads. Sending multi-megabyte *.har files through Slack is just as cumbersome. The network tab, it hard to share those captured HTTP traces with teammates.īetween the front-end and back-end so we constantly have to copy/paste the HTTP headers and JSON payload from the DevTools into email or Slack when debugging API issues. I assumed there would be a lot of Chrome extension to monitor HTTP requests from AJAX calls,īut the few that we found such as the Postman Intercept Chrome Extension seems to only capture
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |