Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 3f0cba6

Browse files
authored
Allow Date header through CORS (#8804)
1 parent 89f7930 commit 3f0cba6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changelog.d/8804.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allow Date header through CORS. Contributed by Nicolas Chamo.

synapse/http/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ def set_cors_headers(request: Request):
674674
)
675675
request.setHeader(
676676
b"Access-Control-Allow-Headers",
677-
b"Origin, X-Requested-With, Content-Type, Accept, Authorization",
677+
b"Origin, X-Requested-With, Content-Type, Accept, Authorization, Date",
678678
)
679679

680680

0 commit comments

Comments
 (0)