mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Add Server
to Access-Control-Expose-Headers header (#15908)
This commit is contained in:
parent
2328e90fbb
commit
b516d91999
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 New Issue
Block a user