How to make dojo.request.xhr GET request with basic authentication
问题 I look at the documentation for Dojo v.1.9 request/xhr and I cannot find example that includes basic authentication. How and where do I include the User name and Password in the Dojo XHR options? require(["dojo/request/xhr"], function(xhr){ xhr("example.json", { // Include User and Password options here ? user: "userLogin" password: "userPassword" handleAs: "json" }).then(function(data){ // Do something with the handled data }, function(err){ // Handle the error condition }, function(evt){ //