for sending cookie to server I must use { withCredentials: true } in options parameter,But When I use
this.http.get(this.accountUrl + 'ExternalLoginConfirmation', {
withCredentials: true })
I get the following error :
Response to preflight request doesn't pass access control check: The
value
of the 'Access-Control-Allow-Origin' header in the response must not be
the
wildcard '*' when the request's credentials mode is 'include'. Origin
'http://localhost:4202' is therefore not allowed access. The credentials
mode of requests initiated by the XMLHttpRequest is controlled by the
withCredentials attribute.
Odd thing : There isn't any error when I call this url by browser
Could you help me?