Hi, I’m Lucio, it’s my first post here and sorry if it isn’t the correct area of the forum.
I’m developing a web app using Unity WebGL. This app will show my stream content from my Twitch’s channel to my html page on my server. I found some Unity plugins that can communicate with Twitch and can read HLS format (Twitch video format?), and in my interface it works perfectly (also if I build an .exe).
Now I’m in trouble with the web version of the app. If I upload on my server, the console give me some errors related to CORS policy. In particular:
Refused to get unsafe header “ETag”
index.html:1 Access to XMLHttpRequest at ‘https://video-weaver.sea01.hls.ttvnw.net/v1/playlist/ […] .m3u8’ from origin ‘http://www.[myHost].it’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
I can say that my output application is in form of an .html page and some .js pages. I didn’t find where I can put this request in these files, and also I don’t know what kind of language is “Access-control- […]”.
Please, someone can help me?
Thanks for your time and sorry for my english.