Timeline for Edit and replay XHR chrome/firefox etc?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 6, 2022 at 15:03 | comment | added | user1768761 |
I needed to append .then(r => r.json()) to the fetch call to see the response on the network tab.
|
|
Jul 9, 2020 at 12:10 | comment | added | Dotista | For those who wonder where to paste the fetch code: paste and modify it on the console | |
Apr 17, 2019 at 19:18 | comment | added | POSIX-compliant |
You can use the following after the fetch to resolve the promise returned by fetch and view the response body (assuming it's JSON) .then(r => r.json()).then(json => console.log(json))
|
|
Mar 23, 2019 at 0:41 | comment | added | Eric Kigathi |
Thank you for this. For anyone else wondering - you can just paste the fetch command directly in the Chrome console and replay the request.
|
|
May 30, 2018 at 17:15 | history | answered | Josh Lee | CC BY-SA 4.0 |