Hello I am new to developing interactive twitch content.
I have made an interactive chat in Unity for my stream although when i built to WebGl (HTML5) I got the error:
Access to XMLHttpRequest at ‘file:/// - - - /Builds.data.gz’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
I am using this https://github.com/lexonegit/Unity-Twitch-Chat/blob/master/README.md to interact with the twitch api and I want to host it localy onside of obs using a browser source.
I have no idea what has gone wrong.
I would appreciate any and all help
I just created a new Unity project with only the code from git hub inside and I have the same issue, although I don’t have enough technical knowledge to fix it.
there are no issues inside of unity it is only when built to webGL that i get the following errors:
Access to XMLHttpRequest at ‘file:/// - - - /Builds.data.gz’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
Build/Builds.data.gz:1 Failed to load resource: net::ERR_FAILED
Builds.framework.js.gz:1 Uncaught SyntaxError: Invalid or unexpected token
Builds.loader.js:1 Uncaught ReferenceError: unityFramework is not defined
at HTMLScriptElement.r.onload (Builds.loader.js:1)
Same errors with my version.