posted 11 years ago
Hi there,
I have a site and when you actually go to that site via browser, it asks for basic Http authentication when the user fills in the required information, there are some cookies dropped by the site.
I tried to mimic the same behavior using XHR. when I use XHR and I look in the developer console , I do see that the cookies are there but the issue here is how do I access those ?
If I do XHR.getAllResponseHeaders() doesn't give me what I'm looking for and also if I do xhr.getResponseHeader("Set-Cookie"), I don't get the value back...
Thanks
- Harjit