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
|
||||
icon: https://matrix.org/images/matrix-logo.svg
|
||||
type: application
|
||||
version: "1.0.22"
|
||||
version: "1.0.23"
|
||||
# renovate: image=ghcr.io/element-hq/synapse
|
||||
appVersion: 1.127.1
|
||||
maintainers:
|
||||
|
|
|
@ -7,7 +7,7 @@ description: "Matrix reference homeserver"
|
|||
|
||||
# matrix-synapse
|
||||
|
||||
  
|
||||
  
|
||||
|
||||
Matrix reference homeserver
|
||||
|
||||
|
|
|
@ -4,7 +4,10 @@ server {
|
|||
server_name localhost;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue