JSFiddle - React, Tailwind, and code Playground

by padma rubhan

JavaScript

let toke = "";
var data = "[{

}]"

$.ajax({
  url: "https://localhost:8000/v2",
  dataType: 'jsonp',
  data: {
    alt: 'json-in-script'
  },
  success: function(data, status) {
    return console.log("The returned data", data);
  },
  beforeSend: function(xhr, settings) { xhr.setRequestHeader('Authorization','Bearer ' + token); } 
});