Reputation: 93163
How to set withCredentials=true
to fetch
which return promise.
Is the following correct :
fetch(url,{
method:'post',
headers,
withCredentials: true
});
I think the MDN documentation talked about everything about http-requesting except this point: withCredentials
Upvotes: 74
Views: 67889
Reputation: 93163
Got it here :
credentials: 'include'
and not
withCredentials: true
Upvotes: 129