Skip to content

Instantly share code, notes, and snippets.

@wallat
Last active November 16, 2021 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wallat/3d294c8c280d89756267aa4555718881 to your computer and use it in GitHub Desktop.
Save wallat/3d294c8c280d89756267aa4555718881 to your computer and use it in GitHub Desktop.
[Fetch POST]
fetch(`${url}`, {
credentials: 'include',
method: 'POST',
headers: {
'Content-Type': 'application/json',
funStoreId: this.funStoreId
},
body: JSON.stringify(postData)
})
.then(res => res.json())
.then(res => {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment