Commit 82654a1
authored
fix: Detect page protocol and use WSS for HTTPS connections for Sockets (#13)
When I deployed the UI behind https, the brower blocked connect due to insecure WebSocket endpoint
Error in Chrome
```
Mixed Content: The page at 'https://example.com/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://example.com/ws'. This request has been blocked; this endpoint must be available over WSS.
```1 parent f41ef09 commit 82654a1
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments