I’m developing a Twitch Extension that displays cat treat recommendations from the Billi Treats API inside a panel below the stream. The extension loads correctly at first, but the embedded section occasionally stops loading dynamic content — showing only a blank area while the rest of the Twitch interface works fine.
Here’s what I’ve observed:
-
The issue occurs randomly when fetching product data through the Billi Treats API endpoint.
-
Console shows intermittent
CORSandnetwork timeouterrors. -
The API works normally when tested outside of Twitch (via Postman or a standalone page).
-
I’ve already verified the
manifest.jsonand added the correctcontent_security_policyfor the Twitch extension environment. -
The issue seems to happen more often when the panel reloads after being minimized or when switching between streams.
Could this be related to Twitch’s sandboxed iframe environment or how it handles cross-domain requests from third-party APIs like Billi Treats?