svrcekmichal / redux-axios-middleware

Redux middleware for fetching data with axios HTTP client
MIT License
922 stars 96 forks source link

Set Cookies from request #88

Open Melvin-88 opened 5 years ago

Melvin-88 commented 5 years ago

Hi gays! I'm using your middleware. When I use the action (get), server sending me Set-Cookie in requests header but it don`t saving in document cookies. How can I save it? can there be a special setting? I tried to use it: "withCredentials: true"

export function postLogin(data) { return { type: types.LOGIN, payload: { client: 'default', request: { url:/api/v1/login, method: "post", withCredentials: true, data } } }; }