I am wondering how to correctly get load an xml file from an external website in p5js. In Processing it is no issue using loadXML on the url, but in p5js it seems more complicated, and just calling loadXML with the raw url does not give any results.
I had @GoToLoop help me out in the old Processing forum, but the solution he helped me make (and thank you a lot for that!) stopped working earlier this week for some reason… I don’t really understand how the HerokuApp and CORS proxies work, so any help would be much appreciated.
Here is the link to the original thread on the old forum:
Right thanks so much for helping once again!
I tried with http://api.AllOrigins.win/get?url=https://EkstraBladet.dk/rssfeed/sport/ but it gives me an error saying: p5.js:78248 Mixed Content: The page was loaded over HTTPS, but requested an insecure resource 'http://api.allorigins.win/get?url=https://ekstrabladet.dk/rssfeed/sport/'. This request has been blocked; the content must be served over HTTPS.
When changing from http://api.AllOrigins… to https://api… (changing the s), I get no error, but don’t seem to get access to anything?
Hi again @GoToLoop , I hope it is okay I ask yet again about a related issue.
How might I correctly load the xml for Google suggest xml
When using api.AllOrigins.win which worked (and still works ) for the other rssfeed, it does not seem to work for this particular website.
Thanks so much @GoToLoop ! In Chrome I do get a warning about CorsAnywhere.HerokuApp.com potentially being unsafe (see screenshot). Are there any alternatives?