Project

General

Profile

Actions

Task #8251

closed

Matrix homeserver autodiscovery in client does not work.

Added by Timothée Floure about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
07/01/2020
Due date:
% Done:

0%

Estimated time:
PM Check date:

Description

Well-known URLs such as https://ungleich.ch/.well-known/matrix/client should allow clients to discover the correct HS address -> does not work for some reason.

See https://matrix.org/docs/spec/client_server/r0.6.1#get-well-known-matrix-client for specification.

Actions #1

Updated by Timothée Floure almost 2 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Timothée Floure almost 2 years ago

Found out what was wrong: * Homeserver discovery is only done from the username. The homserver URL selection panel never use it. * Some CORS issue on the discovery side, can be fixed by setting the CORS header on the server.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://ungleich.ch/.well-known/matrix/client. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Actions #3

Updated by Timothée Floure almost 2 years ago

  • Status changed from In Progress to Closed

Patched for ungleich.ch and cdist updated for .well-known URLs served by ungleich.ch

Actions #4

Updated by Timothée Floure almost 2 years ago

PS: would be nice to make this login UI more obvious.

Actions

Also available in: Atom PDF