this.append is not a function
I'm encountering this error when trying to use the latest version
Is this a known issue? I've attempted various rejiggings to see if I am doing something wrong but I cannot see anything - the code I'm using for the fetch is shown below:
fetch("/api/result/csv?export_number=" + encodeURIComponent(export_number), {
method: "GET",
credentials: "same-origin",
headers: {
"X-CSRFToken": event.target.dataset.csrfToken,
"Content-Type": "application/json",
Accept: "application/json",
},
})
I originally tried this without the "Content-Type" and "Accept" headers, which seem to make no difference. Any help would be appreciated as I'm stumped, thanks in advance.
ETA: This occurs both on chrome, firefox, and ie 10.
@thor174 I don't understand what you mean sorry?
@findoslice
try to assign the headers via next way
headers: new Headers({
"header_name": "header_value"
})
Sure thing @KVROHITH098 - I'm happy to review a PR for this