Mixed Content: The page at 'https://.../' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://.../pals'. This request has been blocked; this endpoint must be available over WSS.
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscribe@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.
Oh got it, so this is unique to ws, and the proxy flag solves the problem for http, just not ws. Thanks! Theoretically, is that something that Mojo could address? If it can do it for http, can it theoretically do it for ws?
For example url_for(...)->to_abs->scheme('wss).
The X-Forwarded-Proto header is set by the server which is proxying to Mojo. That server knows it is receiving https and proxying it, but those requests aren't using the ws protocol yet so it doesn't know it should use wss. There would either need to be logic that looks for a X-Forwarded-Proto of https and converts any ws: to wss:, or just hardcode the wss: in your template/set the scheme manually (what I have done so far). For example url_for(...)->to_abs->scheme('wss).
proxy_set_header X-Forwarded-Proto $scheme;
--