Angular 16
Ionic 7
ngx-cookie-service 16
With this.cookieService.set('sessionkey', 'a-unique-hash', null, null, null, false, 'Lax');
or this.cookieService.set('sessionkey', 'a-unique-hash');
i set a cookie. In my browser tools can i see the cookie for the domain.
But no cookie is send with request to the server.
I expect that the cookies can be seen in the browser tools under "Network" in the request (cookies send with the request).
[edit]
All requests has withCredentials: true
:
req = req.clone({
url: this.apiBaseUrl + req.url,
withCredentials: true,
});
[edit]
If I don't clone the request with an object as a parameter, the url is wrong but the cookies are sent.
...the clone() function make the shit. Why?