I want something like this: How to use Basic Auth with jQuery and AJAX?
In the question there they explained how to use authentication
I need to use a jQuery $.getJSON
instead of a $.ajax
request to a server because it doesn't support cross-site.
And also I need to submit a user and a password.
Is there a way to submit a user and password as parameters in a $.getJSON
WITHOUT sending it in the URL like https://user:password@myserver.com
?