Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fetch("/post", {
- method: "POST",
- headers: {
- 'Content-Type': 'application/json'
- },
- body: JSON.stringify({data: "Text"})
- }).then(res => res.text())
- .then(res => console.log(res));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement