Skip to content

Instantly share code, notes, and snippets.

@kesarawimal
Last active February 15, 2021 15:42
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 kesarawimal/863b2109514558ba4dd803372e035d89 to your computer and use it in GitHub Desktop.
Save kesarawimal/863b2109514558ba4dd803372e035d89 to your computer and use it in GitHub Desktop.
FormSubmit AJAX Documentation: Axios
// https://github.com/axios/axios
axios.defaults.headers.post['Content-Type'] = 'application/json';
axios.post('https://formsubmit.co/ajax/your@email.com', {
name: "FormSubmit",
message: "I'm from Devro LABS"
})
.then(response => console.log(response))
.catch(error => console.log(error));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment