fix(matrix-synapse): improve well-known CORS

This commit is contained in:
WrenIX 2025-04-05 16:09:19 +02:00
parent 83eb4bb925
commit bf840cffd1
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
3 changed files with 6 additions and 3 deletions

View file

@ -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:

View file

@ -7,7 +7,7 @@ description: "Matrix reference homeserver"
# matrix-synapse
![Version: 1.0.22](https://img.shields.io/badge/Version-1.0.22-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.127.1](https://img.shields.io/badge/AppVersion-1.127.1-informational?style=flat-square)
![Version: 1.0.23](https://img.shields.io/badge/Version-1.0.23-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.127.1](https://img.shields.io/badge/AppVersion-1.127.1-informational?style=flat-square)
Matrix reference homeserver

View file

@ -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;
}