I use the public dog API: https://dog.ceo/dog-api/ .It is working with postman, curl and on browser but not able to call it using AJAX. Anyone please provide inputs what I am doing wrong here:
$.ajax({
    url: "https://dog.ceo/api/breeds/image/random",
    type: "GET",
    dataType: 'script',
    success: function(data){console.log(data)},
  });
 
     
     
    