I have a react app without a backend that is using localhost
. In a component, there is an onClick
handler which calls an external API to get data. The state is amended to have a piece of state be the return value of the API.
The code for that call:
fetch(statsURL)
.then(function(response) {
return response.resultSets.rowSet
})
This generates the following error:
In the Network details, I do get a 200 OK status code, and here is the header info:
Let me know if you have any suggestions. Thanks