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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…