仅在Angular 2中发送PHPSESSID

时间:2016-11-23 12:15:05

标签: php angularjs angular

我请求api时是否可以只发送PHPSESSID?我问这个是因为在我发出的请求中(附图)我发送了cookie auth,我不需要发送它。

Request

请求代码

  this.token = this.cookies.getCookie("auth");

  let headers = new Headers({'Content-Type': 'text/html', 'Authorization': 'Bearer ' + this.token});
  let options = new RequestOptions({ headers: headers, body: '', withCredentials: true});    
  return this.http.get(this.urlbase + "pesquisa/"+pesquisa+"/"+pag , options)
  .map((response: Response) => response.json());

0 个答案:

没有答案