Set-Cookie header not setting cookie in Chrome Set-Cookie header not setting cookie in Chrome ajax ajax

Set-Cookie header not setting cookie in Chrome


You need to append withCredentials to your XHR call, this answer shows how to do that with jQuery. https://stackoverflow.com/a/7190487Without that additional flag, the browser will not accept a set-cookie header.