Open d4nnyx opened 8 months ago
Hi @d4nnyx, would you be open to reading through the suggestions and questions in this other GitHub issue to see if they are helpful https://github.com/mattermost/mattermost-mobile/issues/7739?
I'm in a similar situation and having the same problem.
This problem occurs only with the iOS/Android client and not with the Desktop Client or browser.
This problem does not occur if allowCorsFrom: '*'
is set.
We're experiencing the the same behaviour but only on iOS mobile devices. The problem occurred after updating the mattermost app to 2.12.
The "workaround" allowCorsFrom: '*'
doesn't help. Mattermost is served by a KEMP LB without Nginx.
Mattermost 8.1.11 ESR iPhone 13 iOS 17.4 Mattermost Mobile 2.14
Summary
When CORS is disabled on a server and nginx does not pass the origin header through proxy, iOS shows banner "Server is not reachable", but everything seems working.
Environment Information
Steps to reproduce
Expected behavior
No error banner, same as in the desktop or web app
Observed behavior (that appears unintentional)
iOS logs
Mattermost server logs
NGINX server logs
NGINX configuration
Mattermost config
Unfortunately, I hadn't chance to try it on Android device.
Possible fixes
It is probably caused by badly configured passing of the Origin header through proxy, but I think that all platform should treat this the same way. And in this case, only iOS shows the problem. After setting
allowCorsFrom: '*'
, banner dissapears.