said by JAAulde:
The only exception is JSONP, which requires cooperation on the part of the remote server.
Or Cross-origin resource sharing
also allows it, but also requires some cooperation. The other alternatives is server side proxy or DNS alias.
There are limitations to all of the above, so there isn't one solution that fits all.