php - Only send PHPSESSID in Angular 2
514
Is it possible to send only the PHPSESSID when I request my api? I ask this because in the request I make (attached image) I send the cookie auth and I do not need to send it.
Request code
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());