Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. $.ajax({
  2. url: 'http://otherurl.com',
  3. username: 'user',
  4. password: 'pwk',
  5. type: 'GET',
  6. xhrFields: {
  7. withCredentials: true
  8. },
  9. crossDomain:true,
  10. dataType:"json",
  11. success: function (data) {
  12. console.log(data)
  13. },
  14. error: function (a, b, c) {
  15. console.log("a", a);
  16. console.log("b", b);
  17. console.log("c", c);
  18. }
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement