There is an API on a domain. I have its URL and credentials. When I type the API URL in the browser, it displays data in the browser. Data is in XML format. I need to access that API using a function. How do I do that? Is there an issue of cross-domain? Coz I am accessing the from my server, which is on a different server. I need to capture that XML data and show it in HTML format. Please guide me on this.
In my opinion, I need to use XMLHttpRequest and/or JSONP and/or CORS. Kindly help.