Home

Published

- 1 min read

how to send a post by console chrome

img of how to send a post by console chrome

The solution for this is noted below

how to send a post by console chrome

Solution

   fetch('https://www.hackthebox.eu/api/invite/generate', {
	method: 'POST',
	body: JSON.stringify({
		title: 'foo',
		body: 'bar',
		userId: 1
	}),
	headers: {
		'Content-type': 'application/json; charset=UTF-8'
	}
})
	.then((res) => res.json())
	.then(console.log)

Try other methods by searching on the site. That is if this doesn’t work