我正在尝试登录系统。在Angular1中,有一些方法可以设置withCredentials:true但我在angular2中找不到可行的解决方案exportclassLoginComponent{constructor(public_router:Router,publichttp:Http,){}onSubmit(event,username,password){this.creds={'Email':'harikrishna@gmail.com','Password':'01010','RememberMe':true}this.headers=newHeaders();this.
使用AxiosexportfunctionsendAll(){return(dispatch)=>{dispatch(requestData());returnaxios({method:'POST',url:`${C.API_SERVER.BASEURL}/notification/sendAll`,data:{prop:'val'},//responseType:'json',headers:{'Content-Type':'application/json'},withCredentials:true}).then((response)=>{dispatch(receiveDat