2024-05-24 11:39:12 +02:00

7 lines
183 B
JavaScript

const submitForm = async form => await fetch(form.action, {
method: form.method,
body: new FormData(form),
headers: {
"X-Requested-With": "XMLHttpRequest"
}
})