i use HttpClient for a CORS post request from "example.fr" to "api.example.fr".
I receive the correct value from my REST API Server :
Access-Control-Allow-Credentials:true
Access-Control-Allow-Headers:content-type
Access-Control-Allow-Methods:POST, GET, DELETE, PUT, OPTIONS
Access-Control-Allow-Origin:http://example.fr
Access-Control-Max-Age:3600
But I need to send my Cookies to api.example but that doesn't work.
I am calling post method like:
return this.http.post(Config.ROUTES.auth.register, user, { withCredentials: true, })
.catch(Utils.handleError);
Can someone help me please ? Thanks a lot.