JSFiddle - React, Tailwind, and code Playground

by Артур Бакаев

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  
</body>
</html>

JavaScript

$.ajax({
        type: "GET",
        url: 'http://testwin.aplana.com/referent/api.nsf/api2.xsp',
        dataType: 'json',
        headers: {
            'Authorization': 'Basic ' + btoa('AD' + ':' + '1')
        },
        success: function(data) {
            if(data._status==='OK'){
                console.log('Запрос выполнен успешно');
            }else{
                console.log('Сервер ответил с ошибкой');
            }
        },
        error: function (xhr,textStatus,errorText) {
            console.log('Ошибка выполнения ajax запроса: '+textStatus+' '+errorText);
        }
    });