Making HTTP Requests using Chrome Developer tools
Since the Fetch API is supported by Chrome (and most other browsers), it is now quite easy to make HTTP requests from the devtools console. To GET a JSON file for instance: fetch(‘https://jsonplaceholder.typicode.com/posts/1’) .then(res => res.json()) .then(console.log) Or to POST a new resource: fetch(‘https://jsonplaceholder.typicode.com/posts’, { method: ‘POST’, body: JSON.stringify({ title: ‘foo’, body: ‘bar’, userId: 1 … Read more