Algobook
- The developer's handbook
mode-switch
back-button
Buy Me A Coffee
Tue Aug 08 2023

Block requests using devtools in Chrome

In this very short guide, I will share how to block requests using devtools in Chrome. This can be very useful when debugging issues on a web application, or for example when you are developing a proper error handling on your front end application and want to mimic the real world where requests are failing.

How to

So what you basically do is open up the devtools by right clicking and click on inspect. Then you click on the network tab and preferably filter on Fetch/XHR requests for easier navigation and then you right click on the requests you want to block as below image is showing.

chrome-block-request

As seen, there are more nice features here as well such as replaying the requests by clicking on Replay XHR so you can easily fire the same request over and over again.

Summary

There we have it. I hope this very short guide was helpful, and thanks for reading!

Have a great day,

signatureTue Aug 08 2023
See all our articles