I am developing a web API app running using asp.net core2 and Angular. The detailed development environment config is here. I am trying to
API
asp.net core2
Angular
You need to issue the XHR Request withCredentials=true that will make the browser sets the cookie, other wise you will get the 400 bad request because cookie is absent and the X-XSRF-TOKEN is either not set or set to empty string