JSFiddle - React, Tailwind, and code Playground

JavaScript

//$.getJSON('/echo/json', function(){console.log('ok');})
$.getJSON('/', function(){console.log('ok');}) //no response or exceptions
$.getJSON('//', function(){console.log('ok');}) //cors exception, expected
$.getJSON('/echo/json', function(){console.log('ok');}) //cors exception, expected