"Access to XMLHttpRequest at 'http://myjson.com/1c8i2r' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."


Hello @noblegas87, please read the “API - (CORS enabled)” section of the myjson.com website. You’ll find the link at the bottom of the page, near the “about” link

I did and I am still lost.

You are requesting directly your document on http://myjson.com rather than using their API.
The root is different, it has “api” in the url


Request JSON
GET /bins/:id

To pretty print returned JSON, add optional parameter:

Server response:
200 OK - Your JSON data returned

Their jQuery Example (run in JSFiddle)
$.get("https://api.myjson.com/bins/:id", function(data, textStatus, jqXHR) { });

Then there are the HTTP methods POST and PUT to respectively create and update a document