summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorShay <hillerys@element.io>2023-03-20 11:14:05 -0700
committerGitHub <noreply@github.com>2023-03-20 11:14:05 -0700
commit5ab7146e191c4160cbecf4c6dec6a0f2ed00e171 (patch)
tree8d78b403302acef5ed02df8cb6e8904ecc8006bb /synapse
parentMirror images to the GitHub Container Registry (`ghcr.io/matrix-org/synapse`)... (diff)
downloadsynapse-5ab7146e191c4160cbecf4c6dec6a0f2ed00e171.tar.xz
Add Synapse-Trace-Id to access-control-expose-headers header (#14974)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/http/server.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py
index 9314454af1..7b760505b2 100644
--- a/synapse/http/server.py
+++ b/synapse/http/server.py
@@ -892,6 +892,10 @@ def set_cors_headers(request: SynapseRequest) -> None:
             b"Access-Control-Allow-Headers",
             b"X-Requested-With, Content-Type, Authorization, Date",
         )
+        request.setHeader(
+            b"Access-Control-Expose-Headers",
+            b"Synapse-Trace-Id",
+        )
 
 
 def set_corp_headers(request: Request) -> None: