From 666fa57174766c8f7be5d26bb7cf231fd8a7aa22 Mon Sep 17 00:00:00 2001 From: Nicolas Chamo Date: Tue, 24 Nov 2020 11:48:05 -0300 Subject: [PATCH 1/2] Update server.py --- synapse/http/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/http/server.py b/synapse/http/server.py index c0919f8cb7cb..4b0195faf33d 100644 --- a/synapse/http/server.py +++ b/synapse/http/server.py @@ -685,7 +685,7 @@ def set_cors_headers(request: Request): ) request.setHeader( b"Access-Control-Allow-Headers", - b"Origin, X-Requested-With, Content-Type, Accept, Authorization", + b"Origin, X-Requested-With, Content-Type, Accept, Authorization, Date", ) From c5e35532f0fdcb4dcdf507eb766310cf12f7e36b Mon Sep 17 00:00:00 2001 From: Nicolas Chamo Date: Tue, 24 Nov 2020 12:14:12 -0300 Subject: [PATCH 2/2] Create changelog file --- changelog.d/8804.feature | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/8804.feature diff --git a/changelog.d/8804.feature b/changelog.d/8804.feature new file mode 100644 index 000000000000..a907c8106c2c --- /dev/null +++ b/changelog.d/8804.feature @@ -0,0 +1 @@ +Allow Date header through CORS. Contributed by Nicolas Chamo.