-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Element-Desktop 1.9.7 Windows/Linux login on homeserver not possible #20227
Comments
@pprugger can you please check if there are any errors in the console (you should be able to open it with Ctrl+i, then go to the Console tab) |
Additional info: Additionally the CORS error in 1.9.7 prevents the client completely from syncing. |
CORS is entirely outside the hands of Element, it is a handshake between the browser (Chromium) and your Web Server. If you check the Network tab and try again it'll give you more details about the error. |
Hey @t3chguy ! 1.9.7 is broken. Same server of course. |
Element Desktop uses Electron which is built on Chromium, hence me saying that. |
I dont know what that should tell me more than the errors i already have posted. Also i still have the error, that the server is not a valid homeserver. no idea why. |
If you click on the request it'll show you response headers, which you can use to figure out why it was flagged as CORS, e.g missing ACAO header. |
As i already stated, i tried setting and changing the ACAO header with no luck. Error processing homeserver config: {state: "FAIL_ERROR", error: "Homeserver URL does not appear to be a valid Matrix homeserver", base_url: "https://prometheus.umask.eu"} Attempted prometheus.umask.eu as a server_name but it failed Error: Homeserver URL does not appear to be a valid Matrix homeserver |
Again, only the info in the Network tab would be helpful as the Javascript Console only contains app logs but with CORS the browser obscures the underlying cause for security reasons. |
Okay, we were able to solve this problem. On computers where this problem arose, an alternative dns from Google was registered. For some reason, version 1.10 lost the server until you removed dns from the connection options, but at the same time, 1.9 worked flawlessly on the same device and with dns too. |
I don't fully agree with this. As the Origin header is all sorts of special when it comes to element/synapse.
I don't like adding |
@Torxed the Matrix spec recommends |
Correct me if I'm wrong, but that would allow any site to access content on a client running under another domain? Meaning the whole safety that restriction puts in place gets null and void? (Assuming that the browsers honor it in the first place, which all the major ones does) |
No, it merely tells what origins a web browser should allow to make web requests to your API service. It does not control cross-tab or cross-origin access of any data or client state, merely the HTTP request passing or failing. |
From the history it appears as though all cases are configuration errors and not something we can fix ourselves. If you see this, please visit #element-web:matrix.org on Matrix for troubleshooting. |
Steps to reproduce
Download and install Element-Desktop 1.9.7 for Windows
Start Element-Desktop
Click on edit to change the homeserver
Type in your homeserver: https://homeserver-url
Element-Desktop keeps to persist to say it is not e valid homeserver.
Element works on the Webclient, Linux, Android and IOS with this homeserver.
Only the Windows version fails to function.
In my debbuging i found that:
If you just type in the homeserver url the client tries to query .well-known/matrix/client
With the https:// prepended the client does not even query the homeserver
Just says: "Homeserver URL does not seem to be a valid Matrix Homeserver".
Outcome
What did you expect?
Login to my own homeserver
What happened instead?
Just says: "Homeserver URL does not seem to be a valid Matrix Homeserver".
Operating system
Windows 10
Application version
Element-Desktop 1.9.7
How did you install the app?
https://element.io/get-started#download
Homeserver
https://prometheus.umask.eu
Will you send logs?
No
The text was updated successfully, but these errors were encountered: