如何将withCredentials=true设置为返回承诺的fetch。以下是正确的:
withCredentials=true
fetch
fetch(url,{ method:'post', headers, withCredentials: true });
我认为MDN documentation谈到了关于http请求的一切,除了这一点:withCredentials
withCredentials
得到它here:
credentials: 'include'
并不是
withCredentials: true