View Full Version : ScriptTagProxy and Cookies

15 Sep 2011, 5:28 AM
I have a Sencha Touch App wrapped in PhoneGap that requests data from a remote server. As the server resides in a different domain I am using a ScriptTagProxy. My proplem is the following: The server adds a session cookie to its responses but that cookie is never set on the client side (as expected since it is x-domain). To work around this problem i would like to know if there is any way to

1. receive and read the cookie (or to inspect the http response for that matter) and
2. set the cookie for subsequent requests?

I really don't want the App to send the user's credentials with every request. Any Ideas?

Thanks in advance!

2 Nov 2011, 3:08 AM
Depends, where are you making the authentication, JS or Obj-C?
if it is a cross domain issue:

2 Nov 2011, 3:12 AM