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:
POST https://api.twitch.tv/v5/extensions/4xs9z6xjdbne34izori35h3slfqiih/auth/refresh/test 404 ()
2localhost.rig.twitch.tv/:1
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.
products:1
If I add any product, I cannot find it there againg if I upload the page.
ALSO:
I’ve also tried to test directly into a channel using setUseLoopback like this:
Twitch.ext.bits.useBits(“123”);
Twitch.ext.bits.setUseLoopback(true)
Twitch.ext.bits.onTransactionComplete(this.bitsCallback)
But I’m getting this:
Log:
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?
Thanks!