C# Webapi + Angular 4 Set-cookie Doesn't Save Cookies
I'm doing an http request to my API that is supposed to send me back two cookies with the Set-Cookie Header. It seems that the cookie is correctly send back for this Init Request b
Solution 1:
I guess your C# backend runs at a different port than your Angular application. Cookies are not shared among different ports of the same host. Chrome displays cookies valid for the current tab URL, which is the Angular application. So you cannot see your backend cookies there.
You can check your headers of XHR requests from the Angular application to the C# backend, they should contain the specified cookies (ASP.NET_SessionId, ARRAffinity).
Post a Comment for "C# Webapi + Angular 4 Set-cookie Doesn't Save Cookies"