I have the following fetch call in a React app on codesandbox : https://codesandbox.io/s/react-fetch-example-for-so-vxxie
If I activate either line
.then(console.log(data))
or
loadOptions={this.state.data}
I get : A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https:// fb.me/react-crossorigin-error for more information.
Why and how to troubleshoot this ?
(please note I added a space in front of fb.me to pass validation here on StackOverflow)