Problem: Fetch in React for Leaderboard [SOLVED]


Trying to grab the info off of

by using

	<script type="text/babel">

		function(response) {


but it is returning

Response {type: "cors", url: "", redirected: false, status: 200, ok: true…}

I tried this for several endpoints and the result is always 200 - any way I can use fetch for this or do I have to request the data in another way?


200 is good

The response data is accessed with response.json()

	.then(function(response) {return response.json()})
	.then(data => console.log(data))


lol, to my tired mind it was an error code - thank you :slight_smile: