2

I am firing an XHR request from Angular 4 to a token endpoint at /oauth/token and I don't see the set-cookie headers that I am expecting when debugging the response.

In do see them in curl, Chrome's network tab, Firefox's network tab and Postman, just not in Angular 4.

I have read this and included the 'withCredentials' property to no avail.

Screenshot of Chrome's Network tab:

enter image description here

Screenshot of Chrome debugger below. There are no set-cookie headers in the _headers array and trying to specifically grab them (let setCookieHeader = res.headers.get('set-cookie')) results in null.

enter image description here

Any ideas why the set-cookie headers are missing?

Julius
  • 2,784
  • 6
  • 32
  • 54

0 Answers0