Closed guoyunhe closed 5 months ago
withCredentials is xhr option, so axios has:
withCredentials
axios.defaults.withCredentials = true;
However, xior uses fetch, fetch has different option credentials for the same functionality:
credentials
xior.defaults.credentials = 'include';
This makes xior ignoring withCredentials.
Thanks feedback, fix in v0.5.1.
Now if xior.defaults.withCredentials = true;, xior will set credentials='include'
xior.defaults.withCredentials = true;
credentials='include'
Awesome!
withCredentials
is xhr option, so axios has:However, xior uses fetch, fetch has different option
credentials
for the same functionality:This makes xior ignoring
withCredentials
.