WebSocket problem after upgrade

Hi,

I have upgraded from version 7.7 to 9.10. The upgrade procedure went without problems, but currently I’m dealing with a problem with WebSocket - on top I have a monit:
" Please check connection, Mattermost unreachable. If issue persists, ask administrator to check WebSocket"

The Mattermost itself works correctly, I can browse teams and channels, post new messages etc.

My Mattermost is self hosted on Ubuntu 20.04.6 LTS, using Nginx as proxy server.

Befor the upgrade there were no problems like that. What might be the reason?

Any help appreciated.

What is the value of ServiceSettings.AllowCorsFrom? You might want to set that to the list of domains from which you are accessing Mattermost.

I went to Integrations → CORS and the line “Enable cross-origin requests from:” was empty. I filled it with wiildcar “*” and the problems is solved.
Thank you @agnivade

1 Like

You’re welcome. Just a note that ideally, you should only set the URLs from which you want access. Otherwise anybody can open WS connection to your server.

1 Like