I am building a website(react app) integrated with twitch api.
I use the Implicit grant flow to auth my website
When request this https://api.twitch.tv/helix/videos route, it will always return an empty array
a picture from edge browser’s network and console I printed
And the other routes are works fine.
like this route
or this route
BUT I use the api tester like Thunder Client for VS Code.
The https://api.twitch.tv/helix/videos works fine
Also used the
C# NET6 ConsoleApp to test on my windows 11
Found that this https://api.twitch.tv/helix/videos route only works on server side, the client side can not works.
Only this https://api.twitch.tv/helix/videos route return an empty array while others (same api with different route) works fine, so seems not a
Had tried this CORS - Wrong ‘Access-Control-Allow-Origin’ header on twitch developer forums to add a request header
'accept': 'application/vnd.twitchtv.v5+json', or renew my twitch developer console’s clientId.
But still didn’t work
Does anyone know this issue or I am missing something?