fetch() that doesn't work...? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 4

fetch() that doesn't work...?

Why fetch function doesn't work properly on PC? It seems like it wont request data from https://code.sololearn.com/ at least in my browser... (even with cors (!)) Is there any alternative for this function? I've tried XMLHttpRequest but it doesn't work too... here are codes which you can test by running in your browser on PC. for fetch - https://code.sololearn.com/W42Ou3sHu0gG for XMLHttpRequest - https://code.sololearn.com/WOS5IJd3TpZt leave a comment under those codes, if you will meet the same problem

12th Jul 2019, 4:53 PM
Rull Deef ­čÉ║
Rull Deef ­čÉ║ - avatar
2 Antworten
+ 3
Rull Deef I had to remove CORS in order for your code to run, but when I did both ran without a hitch. I'm using windows 10, and chrome browser. Took screenshots of both running with no problems. https://imgur.com/3jxdMHk.png https://i.imgur.com/Zhgiw5N.png btw- Outstanding work, I'm very jealous of your ingenuity.
12th Jul 2019, 7:29 PM
ODLNT - avatar
+ 6
Oh, well, ODLNT, thank you a lot for help
12th Jul 2019, 9:58 PM
Rull Deef ­čÉ║
Rull Deef ­čÉ║ - avatar