This is not possible if the REST API server (and not your server) allows you to request a different origin by setting the CORS (Cross- Source Share) HTTP header, for example, setting the HTTP header "Access-Control-Allow-Origin" in the response:
Access-Control-Allow-Origin: *
or
Access-Control-Allow-Origin: http:
However, you can call your own server using Ajax, and then use your own server as a kind of proxy to call another server in another domain, parse the XML or HTML result using a suitable parser, and return the result to the client:
client --(Ajax)--> server server --(HTTP)---> Site server <---------- client <----------
0x4a6f4672
source share