I am a beginner to REST web services and am building a client JavaScript library for my application which needs to do some AJAX calls to the server. Both are hosted on the same domain as to not cause any cross-domain problems in the case of Mozilla/Chrome. The server-side implementation needs to know the username and password (both embedded) of the GET request coming in, something like:
request.open(reqtype,url,async,username,pwd)
How can i do this in jQuery?
jquery.get()
$.ajax({
url: url,
data: data,
success: success,
dataType: dataType
});
Is there any embedded option of sending username and password for the REST service in the request using $.get()?