I am trying to intercept cookies. Here is the request timeline:
- I send a POSTrequest.
- The server sends a 302and adds in twoSet-Cookieheaders (used for authentication)
- jQuery or WinJS adds the headers and sends a GET to the redirect url.
- I get a 200response, but cookies are not included here.
Can I intercept these cookies anywhere?
Here are the two ways I can send this request:
    WinJS.xhr({
        type: 'post',
        url: url,
        data: token
    }).done(
        function completed(request) {
            // get cookie?
        }
    );
    $.ajax({
        url: url,
        type: 'post',
        data: token,
        success: function(data, text, xhr) {
            // get cookie?
        }
    });
 
    