Edit: It works with image elements!
img = document.createElement("img")
img.src = "http://localhost:1337/service"
I wonder if there is any way I can use an image element to bypass CORS and read RSS xml that way !?
The article in question says they used the image dimensions to encode the error codes returned by the server when making a request.
I can imagine you could simply encode the payload in the dimensions of the image.
new Image(1,1).src = 'http://localhost:1337/service'