JSFiddle - React, Tailwind, and code Playground
JavaScript
$.ajax({
url: "https://api.clockwisemd.com/v1/hospitals",
data: { Accept: application/json, Authtoken: e18862f8ba06293beb428ed589cb3231c6351d6ebff6a0f181d587b6fff538f4,},
type: "GET",
beforeSend: function(xhr){xhr.setRequestHeader('X-Test-Header', 'test-value');},
success: function() { alert('Success!'); }
});