Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add Access-Control-Allow-Origin to .well-known/matrix/client response #4593

Closed
jo-so opened this issue Feb 8, 2019 · 3 comments
Closed

Add Access-Control-Allow-Origin to .well-known/matrix/client response #4593

jo-so opened this issue Feb 8, 2019 · 3 comments

Comments

@jo-so
Copy link

jo-so commented Feb 8, 2019

Description:

It would be helpful, if the response of .well-known/matrix/client contains the field Access-Control-Allow-Origin: *. Currently, I have to add this with Nginx to make the login of riot.im/staging work.

% nc -C ip6-localhost 8008 <<<$'GET /.well-known/matrix/client HTTP/1.0\n'
HTTP/1.0 200 OK
Content-Length: 55
Date: Fri, 08 Feb 2019 21:43:44 GMT
Content-Type: application/json
Server: Synapse/0.34.1.1

{"m.homeserver": {"base_url": "https://alea.gnuu.de/"}}
@turt2live
Copy link
Member

Related: element-hq/element-web#7760

@n1trux
Copy link

n1trux commented Mar 24, 2019

This was apparently fixed in #4651 but if you get a 404 code the Access-Control-Allow-Origin header isn't set, which leads to other errors.

Related: #1595

@richvdh
Copy link
Member

richvdh commented Oct 8, 2019

fixed by #4651

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants