js读取跨域webapi传送回来的cookie 要点

1.webapi 返回cookie时,httpOnly=false

2.webapi 接收Origins 不能为*

3.js端 请求时,withCredentials必须: true   //`withCredentials` indicates whether or not cross-site Access-Control requests should be made using credentials

 

posted @ 2018-04-02 15:47  如虎添翼  阅读(242)  评论(0编辑  收藏  举报