You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to set additional header data when i submit the form
// method: 'POST',
mode: 'cors', headers: {
'Content-Type': 'application/json',
'x-csrftoken': csrfcookie()
}
credentials: 'include',
The text was updated successfully, but these errors were encountered:
Superforms uses the SubmitFunction from SvelteKit in onSubmit, so I don't think this is possible. Extra data can be sent with formData or in the action URL instead.
i want to set additional header data when i submit the form
// method: 'POST',
mode: 'cors',
headers: {
'Content-Type': 'application/json',
'x-csrftoken': csrfcookie()
}
credentials: 'include',
The text was updated successfully, but these errors were encountered: