Why doesn't xmlhttprequest or fetch requests to apis work on sololearn? (JavaScript) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why doesn't xmlhttprequest or fetch requests to apis work on sololearn? (JavaScript)

I wrote a code which includes fetching data from an api. And it works on browser but it doesn't work as intended on code playground

1st Oct 2019, 12:58 PM
Shubham Gaikwad
Shubham Gaikwad - avatar
2 Answers
+ 2
Show your code!
1st Oct 2019, 2:09 PM
Jônatas Araripe
Jônatas Araripe - avatar
+ 2
Shubham Gaikwad You can use both XMLHttpRequest and fetch on code playground, there hundreds of projects created by other community members, and their projects work as intended. https://code.sololearn.com/WU7jABb2XsHN/#html If you want to show your code, someone may be able to help with your problem.
1st Oct 2019, 2:18 PM
ODLNT
ODLNT - avatar