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
xdomain pollutes the global namespace. In particular, it overrides window.FormData. This can break sites on which other scripts use FormData in fetch calls to submit forms via AJAX. To be more precise, consider the following call:
constmyForm=document.getElementById('myForm')myForm.addEventListener('submit',evt=>{evt.preventDefault()fetch(form.dataset.ajaxUri,{method: 'POST',body: newFormData(form)}).then(result=>{// do something with the result})})
The payload of that request sent when submitting the form will not be the actual form data, but [object Object].
The text was updated successfully, but these errors were encountered:
xdomain pollutes the global namespace. In particular, it overrides
window.FormData
. This can break sites on which other scripts useFormData
infetch
calls to submit forms via AJAX. To be more precise, consider the following call:The payload of that request sent when submitting the form will not be the actual form data, but
[object Object]
.The text was updated successfully, but these errors were encountered: