To solve problems with XML API's.
The script is deployed at xml.proxy.emilfolino.se: https://xml-proxy.emilfolino.se
var url = encodeURIComponent("https://emilfolino.se/sitemap.xml");
fetch("https://xml-proxy.emilfolino.se/" + url)
.then(function (response) {
return response.json();
}).then(function(result) {
console.log("With proxy: ", result);
});