Is there a way to send an HTTP request with fetch()
and tell it to not automatically set a header? I'm trying to get it to send a request without a Content-Type
, I can get it to send an empty header
Content-Type:
like this
fetch('http://localhost:8000/', {
method: 'POST',
headers: {
'Content-Type': ''
},
body: 'some data'
});
but can I get it to not include the line at all?