'Where does the response come from?

If we make a request to https://reqres.in/api/users/2 (using the fetch function or the XMLHttpRequest object) and set response type to json, we will get a response.

But where in the webpage does that response come from?



Solution 1:[1]

It's coming from the server. Server listens to the https://reqres.in/api/users/2 endpoint and returns that response on every request

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 noiseymur