Cycling74 / miraweb

MIT License
139 stars 14 forks source link

Mira / Xebra: Secure WS connection #206

Open JamesGreenaway opened 2 years ago

JamesGreenaway commented 2 years ago

I want to host a website on an external sever using HTTPS but make a local web socket connection to Max using Xebra. Unfortunately, in the current state, when I try and run a web page of this nature, Safari will block the web socket connection on the grounds that it is not secure (This doesn't happen in Chrome). From what I can gather the web sockets data is being sent from max insecurely and safari will not allow mixed content. The state class in the Xebra docs shows me how I can set up to expect a secure wss connection but I can't discover how I would be able to set that up inside max using "mira.frame"!?

Does anyone have any idea how I could fix this so that I can host a site on an external server and connect to a local instance of Mira using Xebra?