Not sure the CORS thing is an issue here. I played around with it and it spit out the array. Notice I am consoling things out so I can see what’s happening.
Catctus, you answer works but I dont understand, you just put blob in a variable & tada.
And yeah, Sitek, I saw this too, frustrating me, because before it wouldnt works…
I just think Fetch doesnt manage well narrow single function.
Well, i’ll dig into it later, thx for the help guys !
Hey @DB07, are you sure it didn’t work? The output is nested, so you have to dig into the pokemons array to see it. It doesn’t output it nicely the way it’s written. I just tested this code and it worked:
But if you open it, you see on object in position 0 that has the pokemons accessible by the pokemon key. In other words, the pokemons are at pokemons[0][“pokemon”]
Yeah, no-cors won’t make it work without cors. It’s basically saying, “Hey, this is in violation of the CORS policy, but I still want make the call and get an ‘opaque’ response where I can’t see the data but I get some of the data back.”
I’m no CORS/HTTP expert myself, but that’s how I understand it.