Reputation: 13580
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.
Upvotes: 34
Views: 14821
Reputation: 1845
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.
Upvotes: 55