Access an XML file from different domain in JS
Posted: 29 Nov 2020, 06:46
I am creating a website with HTML and JavaScript that relies on the data of an XML file hosted on a separate domain.
I can achieve this with jQuery-Ajax if the XML is in the same domain as my HTML page, but I cannot find a solution when the file is on a different domain.
Any ideea of how can i read a file from different domain using JavaScript in html page (Not server side)?
I can achieve this with jQuery-Ajax if the XML is in the same domain as my HTML page, but I cannot find a solution when the file is on a different domain.
Any ideea of how can i read a file from different domain using JavaScript in html page (Not server side)?