[Debug] Copy a network request as fetch or cURL with Chrome DevTools

Sometimes you encounter a backend issue which seems to occur only on your computer, with a very specific sets of headers, cookies etc. Because of that, it's useful to have a way of easily sharing network requests sent by your browser with other members of your team.

In this quick lesson we're going to learn how to copy a network request as fetch (so we can test it in the Chrome DevTools console/in a node.js script) or as cURL (so we can test it in a terminal).

 

posted @ 2020-11-02 16:27  Zhentiw  阅读(94)  评论(0编辑  收藏  举报