mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-21 22:03:39 -07:00
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:
parent
18d9c74e39
commit
74df8b603c
1 changed files with 5 additions and 0 deletions
|
@ -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 *;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue