I need to be able to get the webstream through java in order to add a visualizer to my webstream. I've verified everything works webstream-wise and in my javascript, but SinusBot is denying Cross-Origin Requests. How would I go about allowing them so the bot would play?
My current code is available here should anyone need to review it, but please, hands off, don't duplicate it.
https://meozcraft.com/moobeta
The version that currently is in use and works is a render of @Crank's webstream, available at:
https://meozcraft.com/moobot | https://meozcraft.com/nightbot
The only issue I see is a CORS error, stemming from the built-in webserver of SinusBot itself.
OS: Debian 8.5
SinusBot: 0.9.12-58b509d
Webserver: Apache2 2.4.10
EDIT: This is what my research has found so far: http://stackoverflow.com/questions/...utputs-zeroes-due-to-cors-access-restrictions
EDIT #2: Further research shows that starting Google Chrome with the disabled security flag allows my webstream to work as intended... Surely there's something configurable within Sinusbot to allow this without sacrificing my browser's security.
My current code is available here should anyone need to review it, but please, hands off, don't duplicate it.
https://meozcraft.com/moobeta
The version that currently is in use and works is a render of @Crank's webstream, available at:
https://meozcraft.com/moobot | https://meozcraft.com/nightbot
The only issue I see is a CORS error, stemming from the built-in webserver of SinusBot itself.
OS: Debian 8.5
SinusBot: 0.9.12-58b509d
Webserver: Apache2 2.4.10
EDIT: This is what my research has found so far: http://stackoverflow.com/questions/...utputs-zeroes-due-to-cors-access-restrictions
EDIT #2: Further research shows that starting Google Chrome with the disabled security flag allows my webstream to work as intended... Surely there's something configurable within Sinusbot to allow this without sacrificing my browser's security.
Last edited: