JSFiddle - React, Tailwind, and code Playground

JavaScript

$.ajax({
    type: "GET",
    crossDomain: true, // not needed I think
    url: "https://example.com/rest"
});