0

Can you show me some example of JavaScript request to the server from front-end side?

Is that synonym with AJAX?

3rd Oct 2018, 1:44 AM
Owenizedd
Owenizedd - avatar
2 Respostas
+ 2
Here an example https://code.sololearn.com/WarDRMf6rJW3/?ref=app Please note that front end JavaScript normally cannot fetch other domain api unless the endpoint has cors header for all sites * or specified your domain host.
3rd Oct 2018, 2:49 AM
Calviղ
Calviղ - avatar
0
So that means the first then() function gives the return data to the second then() ? anyway, thanks for the example!
8th Oct 2018, 2:52 PM
Owenizedd
Owenizedd - avatar