From f3d1007d23a01b0cbe83e3f8ba6b8411ca6dd93d Mon Sep 17 00:00:00 2001 From: Firegore Date: Mon, 22 Jul 2019 13:42:24 +0200 Subject: [PATCH] fixed CORS fixed CORS --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index b266630..3bec064 100644 --- a/main.js +++ b/main.js @@ -41,7 +41,7 @@ var m = { function getImageMimeType(imgurl, userdata) { return new Promise(function(resolve, reject) { var xhr = new XMLHttpRequest(); - xhr.open("GET", "https://crossorigin.me/" + imgurl, true); + xhr.open("GET", "https://cors-anywhere.herokuapp.com/" + imgurl, true); xhr.onload = function() { clearTimeout(tAbort); if (xhr.status == 200) { @@ -182,7 +182,7 @@ var m = { function get(url) { console.log("fetching..."); var xhr = new XMLHttpRequest(); - xhr.open("GET", "https://crossorigin.me/" + url, true); + xhr.open("GET", "https://cors-anywhere.herokuapp.com/" + url, true); xhr.onload = function() { if (xhr.status == 200) { parse(xhr.responseText);