0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-16 06:51:46 +01:00

Allow Date header through CORS (#8804)

This commit is contained in:
Nicolas Chamo 2020-12-01 10:24:56 -03:00 committed by GitHub
parent 89f7930730
commit 3f0cba657c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/8804.feature Normal file
View file

@ -0,0 +1 @@
Allow Date header through CORS. Contributed by Nicolas Chamo.

View file

@ -674,7 +674,7 @@ def set_cors_headers(request: Request):
) )
request.setHeader( request.setHeader(
b"Access-Control-Allow-Headers", b"Access-Control-Allow-Headers",
b"Origin, X-Requested-With, Content-Type, Accept, Authorization", b"Origin, X-Requested-With, Content-Type, Accept, Authorization, Date",
) )