【发布时间】:2017-08-02 19:29:22
【问题描述】:
我有一个带有 Spring Boot Websockets 的 websocket 服务器主机。 Safari、Chrome 和 Edge 可以连接,但 Firefox 不能。错误:
Firefox kann keine Verbindung zu dem Server unter wss://MY_DOMAIN/growth-websocket/933/omw002tp/websocket aufbauen。
(= "Firefox 无法在 wss://... 处建立与服务器的连接")
我正在使用 Apache 代理 WebSocket:
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://localhost:4567%{REQUEST_URI} [P]
感谢您的帮助!
【问题讨论】:
-
你试过这个解决方案了吗?它可能对你有用。 stackoverflow.com/questions/23775215/…
-
这里有同样的问题,除了我使用 nginx 和 node.js 和 npm 'ws' websockets。
标签: security firefox websocket wss