I'm currently using verison 72.0.3626.119 on a Debian Strecht. I've noticed that since a couple of days (perhaps one or two weeks) I'm missing the Replay XHR menu entry you get when you do a right click on an XHR request in the network window as described here.
I've been also searching google for this with mixed results, I've found this SO question from 2016 where the OP seems to have a similar issue but since my xhr request are not uploading files, this does not apply to me either. In the devtool forums I've found nothing that could help.
So the question is, is this function also gone for everybody else? Or is it just me? I've gone through the devtools settings but I didn't find any option that would help me with this.
If you wish to re-run an XHR request without having to reload the page or rerun the event, you can right click on the resource and and select "Replay XHR" ("Resend" in Firebug).
Right click on the request made, mouse over "Copy", click "Copy as fetch". Otherwise, I've read that for other requests, made by Axios, for instance can be replayed by : Right click on the request made and click "Replay XHR".
XMLHttpRequest (XHR) is a JavaScript API to create AJAX requests. Its methods provide the ability to send network requests between the browser and a server.
The replay XHR still there if you are using the xhr api via axios or something similar, however, if your app is using the new api fetch, you need to use a different approach.
Since Chrome 67, it was introduced a new feature called copy as fetch.
In that case, you can copy as fetch and paste on your console.
So, if you'd like to replay your fetch requests, just paste on your console, then press ↑ and enter to replay your XHR.
The best part of that on the new feature is that you are able to edit your request, before replay.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With