jQuery ajax post authentication failing then succeeding -
i have simple ajax call out internal web application giving me issue:
var service_url = *redacted*
$.ajax({ type: "post", url: service_url, data: "kv:300929^3000ad inc^|", xhrfields: { withcredentials: true }, success: function (xml) { alert(xml); } });`
in firebug, see 1 ajax request sent out , comes 401 response. success function never fires.
in fiddler, see different. 4 calls go out other website. first 3 return 401 unauthorized. 4th call comes 200 ok. @ headers , first call has no auth header. next 2 have auth headers relatively short. , last call has long auth header.
attached screenshot: http://tinypic.com/r/vylgg/5
the 4th call giving me information need display, don't have access information current javascript.
Comments
Post a Comment