Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- url: 'http://otherurl.com',
- username: 'user',
- password: 'pwk',
- type: 'GET',
- xhrFields: {
- withCredentials: true
- },
- crossDomain:true,
- dataType:"json",
- success: function (data) {
- console.log(data)
- },
- error: function (a, b, c) {
- console.log("a", a);
- console.log("b", b);
- console.log("c", c);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement