Ok. Glad to hear we agree... 
 
But how is this not a "bug" I'd figure the XHR and any element with a source property should already be using the same factory (that supports cookies)?
 
Sent: Tuesday, August 11, 2015 at 11:57 AM
From: "Neil Williams" <[email protected]>
To: "Jason H" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [Interest] Using cookies with Image.source
You can use QQmlEngine::setNetworkAccessManagerFactory to make the Image element use your own QNetworkAccessManager instances, which in turn you can set a cookie store on that contains your session cookie. 
 
 
Note that setNetworkAccessManagerFactory set QQmlNetworkAccessManagerFactory is not used by the QML Webview component. 
 
On Tue, Aug 11, 2015 at 4:20 PM, Jason H <[email protected]> wrote:
I have an application that needs a user to login and maintain a cookie. The AJAX features work just fine. But when I set the Image.source property to a URL that is protected and requires a session cookie, it gets a 401.

How can I tell Image elements to use a cookie, the same cookie the AJAX login result got?
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to