mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Add Server
to Access-Control-Expose-Headers header (#15908)
This commit is contained in:
parent
2328e90fbb
commit
b516d91999
3 changed files with 3 additions and 2 deletions
1
changelog.d/15908.misc
Normal file
1
changelog.d/15908.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Add `Server` to Access-Control-Expose-Headers header.
|
|
@ -910,7 +910,7 @@ def set_cors_headers(request: SynapseRequest) -> None:
|
|||
)
|
||||
request.setHeader(
|
||||
b"Access-Control-Expose-Headers",
|
||||
b"Synapse-Trace-Id",
|
||||
b"Synapse-Trace-Id, Server",
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -268,7 +268,7 @@ class OptionsResourceTests(unittest.TestCase):
|
|||
)
|
||||
self.assertEqual(
|
||||
channel.headers.getRawHeaders(b"Access-Control-Expose-Headers"),
|
||||
[b"Synapse-Trace-Id"],
|
||||
[b"Synapse-Trace-Id, Server"],
|
||||
)
|
||||
|
||||
def _check_cors_msc3886_headers(self, channel: FakeChannel) -> None:
|
||||
|
|
Loading…
Reference in a new issue