Código:
debería funcionar así sin ningún problema nose que mal estoy haciendo .
$.ajax({
type: 'POST',
crossDomain: true,
url:URL,
data:valores,
beforeSend: function(xhr){
xhr.setRequestHeader("Access-Control-Allow-Origin","*");
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.setRequestHeader("Authorization", "Basic QVVUT1JJWkFET1JfUkVERU5DSTo4OWYyMjE5OTNmNDU2NDdmNjY3NTM4NWFhNmRiYjBiOGRiOWJkZjAyMjVlM2ZmMmNmMmI2MzNlZWEyYmJmYmNk");
//some characters have been changed for security reasons.
},
dataType: 'json',
success: function(data) {
console.log(data)
}
});


