I’m trying to set up bit products for my extension, using the developer rig, but this is what I’m getting:
This is the console log:
Failed to load https://client-event-reporter.twitch.tv/v1/stats: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://localhost.rig.twitch.tv:3000’ is therefore not allowed access.
If I add any product, I cannot find it there againg if I upload the page.
I’ve also tried to test directly into a channel using setUseLoopback like this:
But I’m getting this:
POST https://api.twitch.tv/v5/bits/extensions/is-eligible/123 500 ()
EDIT: about the second issue, I was calling useBits before setUseLoopback.
Switching the two lines fixed the second error so I managed to make the setUseLoopback work in a channel with all the mocked calls.
Still, I have the error with the products in the rig, hence I cannot set or manage products.
Can anyone give me a hint / point me to the right direction?