Skip to content

Specify websocket protocol for instances #1764

Answered by meteyou
veN1337 asked this question in Help
Discussion options

You must be logged in to vote

No this is not allowed, because this is a browser limitation. So this function is also "hardcoded" in Mainsail. Every browser only allows to connect between the same "secure level" so http websites can only connect to ws sockets and https websites can only connect to wss sockets. So a cross connection is not allowed by the browser itself. So wenn we allow this in Mainsail, you will not be able to connect to your printer with a setup like this.

So you can only host your Mainsail instance without SSL (http) or add a cert to Moonraker and connect via wss.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by veN1337
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants