Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Contributor
Posts: 11
Registered: ‎11-15-2012
My Device: Blackberry 10 Alpha Device
My Carrier: ATT

Ajax Access to Response Cookie Headers

The following works on the iphone to get access to cookies in the response:
$.ajax({
            contentType: "application/json; charset=utf-8",
            url: 'http://mydomain.com/mypath',
            success: function(data, textStatus, jqXHR) {
                var cookies = jqXHR.getResponseHeader('Set-Cookie')
            },
            cache: false,
            dataType: 'json'
        })
However, on the BlackBerry 10 Alpha Device and the Blackberry 10 Alpha Device simulator, cookies is null. I have
<access uri="http://mydomain.com" subdomains="true" />
Is this a permission issue or does BlackBerry just not support this?