Hi all! Thanks for taking a look at my issue, hopefully I provided enough data.
Mattermost webpage showing a Websocket error when used in a no internet access VLAN(in our case QVLAN as in quarantined).
Steps to reproduce
Logging into MM on a network which does not have internet access.
No errors, just MM working as usual.
Scenario: Using MM as a self hosted IM for our small company. We are working with very sensitive data and most of our networks do not have internet access. On the single network that has internet, MM is working fine.
But in the VLANs MM is throwing a Websocket error, and the chats don’t update automatically. If you refresh, the messages show up. What I found in Chrome’s Developer Tools / Network tab, is that 2 requests are unable to reach their URL which are:
They obviously can’t reach these as the computer is in a non internet access network.
MM server version: 9.2.3
Picture of the requests:
My question would be: is it possible to use MM without internet access?
Can these request be disabled or changed in some way?
Thanks in advance,
Mattermost absolutely works disconnected from the Internet! This issue is probably due to AllowCorsFrom not being set. This is something that started being enforced in 7.8 IIRC
Hi John, appreciate the quick reply.
Don’t want to set CORS to “*” to allow CORS from any domain.
Would it be enough to set it to the VLAN’s gateway address?
You can absolutely fine-tune that value. Just remember the note to have SiteURL properly set so you don’t lock yourself out!
Thanks again. I will check it tomorrow when I’m at work and update you whether I was able to fix it or not.
Have a great rest of your day.
So I changed the AllowCorsFrom to the VLAN gateway with the SiteURL set properly. That caused all clients to get Websocket errors on all VLANs. Also the config in the DB can’t be updated by changing the config.json anymore.
I had to change the AllowCorsFrom to * (was only able to do it in system console) for it to work again(with that it works on all VLANs obviously), but still the config.json doesn’t update the active config in the DB.
Could you please assist me with this as well?
Do you have a paid subscription? If so, I’d definitely open a support case. I am a long way from being an expert here! I’ve asked if we have any additional guidance. Maybe Cross-Origin Resource Sharing (CORS) - HTTP | MDN will help?
Nope, using the free self hosted version. The link you sent was helpful.
Appreciate all the help John!