I’m working on a script for Twitch streams with OBS. This script shall display the stream chat in the stream and write a message to welcome new followers.
For writing a message into the stream chat, the script needs a user token. And therefor, I need a redirect URL. And that’s the problem.
Due to atomic redirects and cross origin policy, the script is unable to get the user token. It doesn’t work in Chrome or Firefox. Though it does currently work in OBS (propably due to missing or deactivated security policies), I want to fix this in case OBS fixes these security issues.
The script is open source. You can view it on GitLab (https://gitlab.com/Winder/winders-obs-chat-bot-for-twitch).
I hope you can help me. I’m working on this issue for weeks and am running out on ideas.