fetch
fetch copied to clipboard
_autoresponse without _captcha AJAX
How can I use _autoresponse without _captcha with AJAX?
` fetch("https://formsubmit.co/ajax/[email protected]", {
method: "POST",
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({
name: inputText.value,
email: inputEmail.value,
subject: inputSubject.value,
message: inputMessage.value,
_autoresponse: "Testing autoresponse",
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.log(error))
`