Skip to contentSkip to conversation

docs/website: fixing cors request access

PATCH New Angelo Compagnucci 2 participants 2 messages Oct 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/website: fixing cors request access

The service we were using for cors proxing disappeared rendering the bottom part of website not working.

---
 docs/website/js/buildroot.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/website/js/buildroot.js +2 -2
index 48fafa6..bf80f11 100644
@@ -1,11 +1,11 @@
 function load_activity(feedurl, divid) {
     let container = document.getElementById(divid);
     $.ajax({
-      url: "https://cors.io/?" + feedurl
+      url: "https://cors-anywhere.herokuapp.com/" + feedurl
     })
     .done(function(data){
         let x2js = new X2JS();
-        let result = x2js.xml_str2json(data);
+        let result = x2js.xml_str2json(data.documentElement.outerHTML);
         let loaded = 0;
         let nb_display = 8;
         if (result==null) return;
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 docs/website: fixing cors request access

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Angelo" == Angelo Compagnucci <[email protected]> writes:

The service we were using for cors proxing disappeared rendering the bottom part of website not working.

Yes, I noticed as well earlier this week.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard