我请求api时是否可以只发送PHPSESSID?我问这个是因为在我发出的请求中(附图)我发送了cookie auth,我不需要发送它。
请求代码
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());