matthew-andrews / isomorphic-fetch

Isomorphic WHATWG Fetch API, for Node & Browserify
MIT License
6.95k stars 289 forks source link

delete request with credentials included does not include cookies. #149

Closed tinder-qhan closed 6 years ago

tinder-qhan commented 6 years ago

I have found that: fetch(url, { method: 'DELETE', credentials: 'include'}) will not send cookies for cross domain requests. fetch(url, { method: 'POST', credentials: 'include' }) will send cookies correctly for cross domain requests.

matthew-andrews commented 6 years ago

Hmm, I'm guessing you are talking about client side requests, and this module simply proxies the github fetch polyfill in that case, and so if there's a bug in that behaviour it's probably in that library.