mirror of https://github.com/watcha-fr/synapse
Tag:
Branch:
Tree:
f0e02f5df2
1.103.0-whithout-watcha
code_spécifique_watcha
dependabot/cargo/log-0.4.22
dependabot/cargo/pyo3-0.20.3
dependabot/cargo/regex-1.10.5
dependabot/cargo/serde-1.0.203
dependabot/cargo/serde_json-1.0.119
dependabot/github_actions/actions/download-artifact-4
dependabot/github_actions/actions/upload-artifact-4
dependabot/github_actions/dawidd6/action-download-artifact-3.1.4
dependabot/github_actions/dtolnay/rust-toolchain-1.90.0
dependabot/github_actions/peaceiris/actions-mdbook-2.0.0
dependabot/pip/black-24.4.2
dependabot/pip/pyopenssl-24.1.0
dependabot/pip/ruff-0.5.0
dependabot/pip/twine-5.1.1
dependabot/pip/types-pyopenssl-24.1.0.20240425
feature/create-public-share-link-for-partners
watcha-develop
watcha-lyon-poc
watcha-postgres
watcha-synapse-1.63
v1.103.0
watcha-20220615T155606-8744bec
watcha-20220725T103522-5872653
watcha-20221004T210552-cacf559
watcha-20230516T105835-c98c0fb
watcha-20240528T102955-d92e2cc
watcha-20240614T172257-24baa2e
watcha-20240614T175901-2a6e961
watcha-20240620T111818-dd05b05
watcha-20241016T151951-01924e1
watcha-20241018T114602-58c3d94
watcha-20241018T120039-526886c
watcha-20241018T142133-44f41d8
watcha-20241018T155526-6c49551
watcha-20241021T110133-142020a
watcha-20241021T112738-efc6ace
watcha-20241107T150249-3a569c8
watcha-build-20211216T025348-lyon-poc-95ba3a8
${ noResults }
1 Commits (f0e02f5df2bc3ae779ac8c18578deebdfecc7e97)
Author | SHA1 | Message | Date |
---|---|---|---|
Michael[tm] Smith |
27c06a6e06
|
Drop Origin & Accept from Access-Control-Allow-Headers value (#10114)
* Drop Origin & Accept from Access-Control-Allow-Headers value This change drops the Origin and Accept header names from the value of the Access-Control-Allow-Headers response header sent by Synapse. Per the CORS protocol, it’s not necessary or useful to include those header names. Details: Per-spec at https://fetch.spec.whatwg.org/#forbidden-header-name, Origin is a “forbidden header name” set by the browser and that frontend JavaScript code is never allowed to set. So the value of Access-Control-Allow-Headers isn’t relevant to Origin or in general to other headers set by the browser itself — the browser never ever consults the Access-Control-Allow-Headers value to confirm that it’s OK for the request to include an Origin header. And per-spec at https://fetch.spec.whatwg.org/#cors-safelisted-request-header, Accept is a “CORS-safelisted request-header”, which means that browsers allow requests to contain the Accept header regardless of whether the Access-Control-Allow-Headers value contains "Accept". So it’s unnecessary for the Access-Control-Allow-Headers to explicitly include Accept. Browsers will not perform a CORS preflight for requests containing an Accept request header. Related: https://github.com/matrix-org/matrix-doc/pull/3225 Signed-off-by: Michael[tm] Smith <mike@w3.org> |
3 years ago |