Skip to content

WSS mixed content fix for HTTPS - #39

Merged
tzanio merged 14 commits into
GLVis:masterfrom
tdrwenski:wss-mixed-content-fix
Sep 15, 2026
Merged

tzanio merged 14 commits into
GLVis:masterfrom
tdrwenski:wss-mixed-content-fix

Conversation

@tdrwenski

@tdrwenski tdrwenski commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Select wss:// when the viewer is served over HTTPS, preventing mixed-content failures.
  • Support reverse-proxy WebSocket routes and explicit WebSocket URLs.
  • Add ?socket= support to preconfigure and automatically connect the viewer.

Example

Opening:
https://example.org/glvis/live/?socket=/glvis-ws
automatically connects to:
wss://example.org/glvis-ws
A plain Host and Port workflow remains supported for direct connections.

See also: mfem/containers#9

Hardcoded ws:// was blocked as mixed content on https pages. Derive the
scheme from the page, and let Host include a path (e.g. host/glvis-ws) to
reach the socket via a reverse proxy. Plain host:port use is unchanged.
@tdrwenski
tdrwenski marked this pull request as draft September 4, 2026 18:35
@tzanio
tzanio requested review from jandrej and najlkin September 4, 2026 19:05
@tdrwenski
tdrwenski marked this pull request as ready for review September 4, 2026 20:31
@tdrwenski

Copy link
Copy Markdown
Contributor Author

After discussing with @najlkin, now pushed a change to redesign the socket connection dialog. Let me know what you think, see screenshots:
Screenshot 2026-09-09 at 6 00 49 PM
Screenshot 2026-09-09 at 6 00 42 PM

Comment thread live/index.html Resolved
Comment thread live/index.html Resolved
Comment thread live/index.html Resolved
Comment thread live/index.html Resolved
@tdrwenski

Copy link
Copy Markdown
Contributor Author

Updated screenshots with path option removed-- The standard default connection:
Screenshot 2026-09-14 at 10 17 04 AM

This is what gets filled with URL http://localhost:8000/live/?socket=/foo
Screenshot 2026-09-14 at 10 17 42 AM

@najlkin najlkin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tdrwenski 👍 , looks great! 🎉

@tzanio
tzanio merged commit 4fbef75 into GLVis:master Sep 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants