Is there a way to cancel an initiated ajax request from Chrome Developer Tools
? I want to test if my fallback message displays correctly without changing the code. Setting No throttling
to Offline
will make all calls fail, but I just need one API
to fail for debugging purposes.
https://i.stack.imgur.com/4FUbE.png
I am aware of using the abort()
method in JavaScript to cancel requests, but I prefer not to modify the code for this specific scenario.
In the right-click menu of the API, there is a replay XHR
option. It would be helpful if there was also an abort XHR
option available, but unfortunately there isn't.