The Wayback Machine - https://web.archive.org/web/20220607142543/https://github.com/github/fetch/issues/1135
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_autoresponse without _captcha AJAX #1135

Open
frcelipe7 opened this issue May 14, 2022 · 0 comments
Open

_autoresponse without _captcha AJAX #1135

frcelipe7 opened this issue May 14, 2022 · 0 comments

Comments

@frcelipe7
Copy link

@frcelipe7 frcelipe7 commented May 14, 2022

How can I use _autoresponse without _captcha with AJAX?

`
fetch("https://formsubmit.co/ajax/my@email.com", {

    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))

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant