JSFiddle - React, Tailwind, and code Playground

by D S

JavaScript

$(function() {
  $.ajax({
    url: "https://dansproxy.herokuapp.com/http://80sbeats.cyberbeats.net:8000/stats?sid=1&json=1&callback=",
    type: "GET",
    dataType: "json",
    contentType: "application/json",
    // set the request header authorization to the bearer token that is generated
    headers: {
      "X-Requested-With": "XMLHttpRequest"
    },
    success: function(result) {
      console.log(result);

    },
    error: function(error) {
      console.log(`Error ${error}`)
    },
  });
});