Jquery Ajax Unauthorized 401 Error
I have this code: get
Solution 1:
This should help you
jQuery.ajax({
type: "POST",
url: "http://www.google.com/reader/api/0/subscription/quickadd?ck="+ck+"&client=scroll",
data: params,
contentType: "application/json",
beforeSend: function(xhr) {
xhr.setRequestHeader("Authentication", "Basic " + encodeBase64(username + ":" + password) //May need to use "Authorization" instead
},
success: function(data){
alert(data);
}
});
Post a Comment for "Jquery Ajax Unauthorized 401 Error"