diff options
author | Shay <hillerys@element.io> | 2023-03-20 11:14:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 11:14:05 -0700 |
commit | 5ab7146e191c4160cbecf4c6dec6a0f2ed00e171 (patch) | |
tree | 8d78b403302acef5ed02df8cb6e8904ecc8006bb /tests | |
parent | Mirror images to the GitHub Container Registry (`ghcr.io/matrix-org/synapse`)... (diff) | |
download | synapse-5ab7146e191c4160cbecf4c6dec6a0f2ed00e171.tar.xz |
Add Synapse-Trace-Id to access-control-expose-headers header (#14974)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_server.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_server.py b/tests/test_server.py index d67d7722a4..e266c06a2c 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -266,6 +266,10 @@ class OptionsResourceTests(unittest.TestCase): [b"X-Requested-With, Content-Type, Authorization, Date"], "has correct CORS Headers header", ) + self.assertEqual( + channel.headers.getRawHeaders(b"Access-Control-Expose-Headers"), + [b"Synapse-Trace-Id"], + ) def _check_cors_msc3886_headers(self, channel: FakeChannel) -> None: # Ensure the correct CORS headers have been added |