withCredentials: true react
refer http://Make Axios send cookies in its requests automatically
设置cookie 需要注意:
axios.get(BASE_URL + '/todos', { withCredentials: true });也可以:
axios.defaults.withCredentials = true同时
Access-Control-Allow-Origin设置为https://a.com(客户端器)(不能设置为*)