How to fix websocket error?

Summary of issue:

bje set config.json AllowCorsFrom: “*” and was able to log in but sees these errors:

  1. Server error log: “Failed to upgrade websocket connection” and “websocket.authTicker: did not authenticate ip=xxxxx”. They are logged in to Mattermost and tokens are already set for browser.

  2. Browser error: “/api/v4/websocket’ failed: Error during WebSocket handshake”

  3. If they use nginx, browser shows “too many redirects” message.

They normally don’t use Nginx and their websocket config settings are below with a full list of other config settings here:

“ServiceSettings”: {
“WebsocketURL”: “”,
“WebsocketSecurePort”: 443,
“WebsocketPort”: 80,
“AllowCorsFrom”: “*”, }