fix(matrix-synapse): improve well-known CORS
This commit is contained in:
parent
83eb4bb925
commit
bf840cffd1
3 changed files with 6 additions and 3 deletions
|
@ -4,7 +4,7 @@ name: matrix-synapse
|
||||||
description: Matrix reference homeserver
|
description: Matrix reference homeserver
|
||||||
icon: https://matrix.org/images/matrix-logo.svg
|
icon: https://matrix.org/images/matrix-logo.svg
|
||||||
type: application
|
type: application
|
||||||
version: "1.0.22"
|
version: "1.0.23"
|
||||||
# renovate: image=ghcr.io/element-hq/synapse
|
# renovate: image=ghcr.io/element-hq/synapse
|
||||||
appVersion: 1.127.1
|
appVersion: 1.127.1
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|
|
@ -7,7 +7,7 @@ description: "Matrix reference homeserver"
|
||||||
|
|
||||||
# matrix-synapse
|
# matrix-synapse
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
Matrix reference homeserver
|
Matrix reference homeserver
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,10 @@ server {
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
add_header Access-Control-Allow-Origin "*";
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
|
||||||
|
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
|
||||||
|
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always;
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue