angular2 xhrfields withcredentials true

前端 未结 6 2119
醉话见心
醉话见心 2020-12-03 23:24

I am trying to login to a system. In angular 1, there was ways to set

withCredentials:true

But I could not find a working solution in angu

6条回答
  •  星月不相逢
    2020-12-04 00:14

    In Angular > 2.0.0 (and actually from RC2 on), just

    http.get('http://my.domain.com/request', { withCredentials: true })
    

提交回复
热议问题