What is the correct way to set withCredentials=true
for a fetch
promise return?
fetch(url,{
method:'post',
headers,
withCredentials: true
});
It seems like the MDN documentation covers everything about http-requesting, except for the usage of withCredentials
.