jquery basic authenticated get user code example
Example: jquery basic authenticated get user
$.ajax({ xhrFields: { withCredentials: true }, beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', 'Basic ' + btoa('myuser:mypswd')); }, url: "http://www.example.org/" });