diff mbox series

docs/website: fixing cors request access

Message ID 1570634586-29441-1-git-send-email-angelo@amarulasolutions.com
State Accepted
Commit 198ef6b936b10eddb667e8e8e11d6b56e5a7629f
Headers show
Series docs/website: fixing cors request access | expand

Commit Message

Angelo Compagnucci Oct. 9, 2019, 3:23 p.m. UTC
The service we were using for cors proxing disappeared rendering the
bottom part of website not working.

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
 docs/website/js/buildroot.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Peter Korsgaard Oct. 9, 2019, 8:52 p.m. UTC | #1
>>>>> "Angelo" == Angelo Compagnucci <angelo@amarulasolutions.com> writes:

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

 > Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>

Yes, I noticed as well earlier this week.

Committed, thanks.
diff mbox series

Patch

diff --git a/docs/website/js/buildroot.js b/docs/website/js/buildroot.js
index 48fafa6..bf80f11 100644
--- a/docs/website/js/buildroot.js
+++ b/docs/website/js/buildroot.js
@@ -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;