Fix CORS for web clients

https://matrix-org.github.io/synapse/latest/setup/installation.html

/.well-known/matrix/client needs Access-Control-Allow-Origin * for web clients to work
This commit is contained in:
Tommy 2022-01-14 06:07:46 -05:00 committed by GitHub
commit 74df8b603c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,5 +38,10 @@ server {
set $upstream_port 8008;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
location /.well-known/matrix/client {
default_type application/json;
add_header Access-Control-Allow-Origin *;
}
}
}