View Full Version : JSONP HTTP Basic Authentication

24 Mar 2011, 1:04 PM
I am trying to connect to a JSON source which requires Basic Auth. Does Sencha Touch allow for that and if so does anyone have an example to share?

24 Mar 2011, 1:58 PM
I don't think it's possible, because basic auth uses http headers, and JSONP uses '<script ... />' tags which have no way of specifying headers. You may have to find another approach.

24 Mar 2011, 2:37 PM
That makes sense...Thanks for the response.

30 Jan 2012, 1:46 AM
This is quite strange this can be done easily in jQuery. I was banging my head for this from past 2 days. Feel Sencha touch has got kind of limitations in things such as this. Hope they fix this eventually