Basic Authentication with jQuery.ajax request and jsonp
问题 I have some local html/js files with which I'd like to invoke some remote servers via https and eventually use Basic Authentication for the request. I am encountering two problems. First is that if I don't specify 'jsonp' for the dataType, jQuery.ajax() request returns the error: Access to restricted URI denied code: 1012 Are my requests considered cross-domain because my main work file is stored locally, but retrieving data from a server elsewhere? So fine, I update the call so it now looks