From bf840cffd18c2b6599395d74fbde8ff301b1d891 Mon Sep 17 00:00:00 2001 From: WrenIX Date: Sat, 5 Apr 2025 16:09:19 +0200 Subject: [PATCH] fix(matrix-synapse): improve well-known CORS --- matrix-synapse/Chart.yaml | 2 +- matrix-synapse/README.md | 2 +- matrix-synapse/files/well-known/nginx.conf | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/matrix-synapse/Chart.yaml b/matrix-synapse/Chart.yaml index 9b444c6..fafa514 100644 --- a/matrix-synapse/Chart.yaml +++ b/matrix-synapse/Chart.yaml @@ -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: diff --git a/matrix-synapse/README.md b/matrix-synapse/README.md index 61dc6d3..d91bc98 100644 --- a/matrix-synapse/README.md +++ b/matrix-synapse/README.md @@ -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 diff --git a/matrix-synapse/files/well-known/nginx.conf b/matrix-synapse/files/well-known/nginx.conf index c31b073..02d840d 100644 --- a/matrix-synapse/files/well-known/nginx.conf +++ b/matrix-synapse/files/well-known/nginx.conf @@ -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; }