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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
New Contributor
alwaysvip
Posts: 8
Registered: ‎11-15-2012
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?
Please use plain text.