Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: endPoint,
- type: 'POST',
- async: false,
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- username: myUsername,
- password: myPassword,
- beforeSend: function (xhr) {
- xhr.withCredentials = true;
- xhr.setRequestHeader("Accept", "application/json; odata=verbose");
- }
- });
- let url = baseProtocol + username + ":" + password + "@" + baseUrl
Add Comment
Please, Sign In to add comment