frontend icon indicating copy to clipboard operation
frontend copied to clipboard

retrieve fetch() from polyfill.io, replacing lib/fetch

Open walaura opened this issue 8 years ago • 0 comments

ISSUE

lib/fetch doesn't polyfill formData at the moment which makes us dependant on reqwest for sending forms. This should be trivial to add considering reqwest does support formdata already

Steps to Reproduce

Sending a form using fetch() won't work

const fd = new FormData();
fd.append('test-key', 'test-value');

fetch('/test',{
    method: 'POST',
    body: fd
})

Actual Results (include screenshots)

Doesn't submit the form

Expected Results (include screenshots)

Does submit the form

URL

N/A

OS and Browser details

N/A

walaura avatar Nov 15 '17 15:11 walaura